featadd todos

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-01-02 23:16:59 +00:00
parent b568e9d6a6
commit 94cec714ce
2 changed files with 4 additions and 0 deletions

View File

@ -74,5 +74,6 @@ func (e *Env) settingsPutHandler(w http.ResponseWriter, r *http.Request) {
return return
} }
// TODO: do not replace settings, but change fields
e.Settings = settings e.Settings = settings
} }

View File

@ -13,6 +13,9 @@ type searchOptions struct {
Terms []string Terms []string
} }
// TODO: create filtering afero backend
// used filepath.SkipDir to skip
// Search searches for a query in a fs. // Search searches for a query in a fs.
func Search(fs afero.Fs, scope string, query string, found func(path string, f os.FileInfo) error) error { func Search(fs afero.Fs, scope string, query string, found func(path string, f os.FileInfo) error) error {
search := parseSearch(query) search := parseSearch(query)