Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = cli.Command{ Name: "add", ShortName: "a", Aliases: []string{"new", "n"}, Usage: "Add a new task for Today", Action: actions.Add, }
Add command
View Source
var Config = cli.Command{ Name: "config", Usage: "configures SUP", Action: actions.Config, Flags: []cli.Flag{ cli.StringFlag{ Name: "dir", Usage: "Customize the directory for saving tasks", }, cli.StringFlag{ Name: "editor", Usage: "Customize the editor for editing tasks", }, cli.BoolFlag{ Name: "reset", Usage: "Reset back to defaults", }, }, }
Config command
View Source
var Copy = cli.Command{ Name: "copy", ShortName: "cp", Usage: "Copy Yesterday's and Today's tasks", Action: actions.Copy, }
Copy command
View Source
var Edit = cli.Command{ Name: "edit", ShortName: "e", Usage: "Edit Today's tasks", Action: actions.Edit, Flags: []cli.Flag{ cli.StringFlag{ Name: "editor", Usage: "Choose editor for editing tasks", }, cli.BoolFlag{ Name: "prev", Usage: "Edit the previous day's tasks", }, }, }
Edit command
View Source
var List = cli.Command{ Name: "list", ShortName: "ls", Usage: "List Today's tasks", Action: actions.List, Flags: []cli.Flag{ cli.BoolFlag{ Name: "copy", Usage: "Copy the output to the clipboard", }, cli.BoolFlag{ Name: "prev", Usage: "Show the previous day's tasks", }, cli.StringFlag{ Name: "date", Usage: "Show the date's tasks. E.g. \"2019-12-31\"", }, }, }
List command
View Source
var Open = cli.Command{ Name: "open", ShortName: "o", Usage: "Opens the task directory", Action: actions.Open, }
Open command
View Source
var Print = cli.Command{ Name: "print", ShortName: "p", Usage: "Print Yesterday's and Today's tasks", Action: actions.Print, Flags: []cli.Flag{ cli.BoolFlag{ Name: "copy", Usage: "Copy the output to the clipboard", }, }, }
Print command
View Source
var Which = cli.Command{ Name: "which", ShortName: "w", Usage: "Display location of tasks", Action: actions.Which, }
Which command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.