commands

package
v0.0.0-...-64d1871 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(c *cli.Context, i storage.Impl) (n storage.Note, err error)

AddCommand adds a Note

func DeleteCommand

func DeleteCommand(c *cli.Context, i storage.Impl) (n storage.Note, err error)

DeleteCommand deletes a Note

func EditCommand

func EditCommand(c *cli.Context, i storage.Impl) (n storage.Note, err error)

EditCommand edits a Note

func FormatNoteList

func FormatNoteList(notes []storage.Note) (rnotes []string)

FormatNoteList returns a formatted list of notes

func InfoCommand

func InfoCommand(c *cli.Context, i storage.Impl) (n storage.Note, err error)

InfoCommand shows information about a Note

func KeepCommand

func KeepCommand(c *cli.Context, i storage.Impl, k bool) (n storage.Note, err error)

KeepCommand keeps/unkeeps a Note

func ListCommand

func ListCommand(c *cli.Context, i storage.Impl) (rnotes []string)

ListCommand lists Notes

func NoteName

func NoteName(c *cli.Context) (n string, err error)

NoteName returns name of note and error if note isnt present

func ReadCommand

func ReadCommand(c *cli.Context, i storage.Impl) (err error)

ReadCommand reads a Note

func RenameCommand

func RenameCommand(c *cli.Context, i storage.Impl) (nName string, newName string, err error)

RenameCommand renames a Note

func SearchCommand

func SearchCommand(c *cli.Context, i storage.Impl) (rnotes []string, err error)

SearchCommand searches for Notes

func ShareCommand

func ShareCommand(c *cli.Context, i storage.Impl) (n storage.Note, url string, err error)

ShareCommand shares a Note

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL