Documentation
¶
Index ¶
- Variables
- func AssertAutoSychronization(c *cli.Context) error
- func AssertSave(c *cli.Context) (err error)
- func AssertSychronization(c *cli.Context) error
- func ChainedContext(functions ...func(c *cli.Context) error) func(c *cli.Context) error
- func LocalConfigRequired(c *cli.Context) (err error)
- func OptionalId(c *cli.Context) error
- func RequiredTodoId(c *cli.Context) error
- type Context
- type KeyType
Constants ¶
This section is empty.
Variables ¶
View Source
var Key = KeyType{}
Functions ¶
func AssertSave ¶
func AssertSychronization ¶
func ChainedContext ¶
func LocalConfigRequired ¶ added in v0.1.0
LocalConfigRequired Assert configuration exists and is valid
func OptionalId ¶
OptionalId Asserts that the ID is valid and exists in the collection
func RequiredTodoId ¶ added in v0.1.0
RequiredTodoId Asserts that the ID is valid and exists in the collection
Types ¶
type Context ¶
type Context struct {
DataFolder string
LocalConfigFile string
LocalCollectionFile string
LocalConfig *config.LocalConfig
Collection *todo.Collection
Error error
ExitMessage string
ExitWarning bool
Id int // Id is the first argument that is a number
CurrentToDo *todo.Item
Args []string // Args is the list of arguments that are not numbers
ErrorPrefix string
}
func ContextFromCli ¶
func ContextFromCtx ¶
func (*Context) SetExitError ¶ added in v0.1.0
SetExitError sets the error and the exit message.
func (*Context) SetExitSuccess ¶ added in v0.1.0
func (*Context) SetExitWarning ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.