featadd todos
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
b568e9d6a6
commit
94cec714ce
@ -74,5 +74,6 @@ func (e *Env) settingsPutHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: do not replace settings, but change fields
|
||||
e.Settings = settings
|
||||
}
|
||||
|
||||
@ -13,6 +13,9 @@ type searchOptions struct {
|
||||
Terms []string
|
||||
}
|
||||
|
||||
// TODO: create filtering afero backend
|
||||
// used filepath.SkipDir to skip
|
||||
|
||||
// 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 {
|
||||
search := parseSearch(query)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user