// SearchCommand searches for Notes func SearchCommand(c *cli.Context, i storage.Impl) (rnotes []string, err error) { nName, err := NoteName(c) if err != nil { return rnotes, err } notes := i.SearchNotes(nName) return FormatNoteList(notes), nil }