Documentation ¶
Overview ¶
Package todo is an example of stateful command that let users input required arguments step by step in a conversational manner.
On each valid input, given argument is stashed to *args. *args is passed around until all required arguments are filled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommand ¶
func BuildCommand(storage *DummyStorage) sarah.Command
BuildCommand builds todo command with given storage.
Types ¶
type DummyStorage ¶
type DummyStorage struct { }
DummyStorage is an empty struct that represents a permanent storage.
Click to show internal directories.
Click to hide internal directories.