Documentation ¶
Index ¶
- func Cancel(server string, ids []string, writer io.Writer) error
- func Create(server string, files []string, writer io.Writer) error
- func Get(server string, ids []string, taskView string, w io.Writer) error
- func List(server, taskView, pageToken string, pageSize uint32, all bool, ...) error
- func NewCommand() *cobra.Command
- func Wait(server string, ids []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
Cancel runs the "task cancel" CLI command, which connects to the server, calls CancelTask() on each ID, and writes output to the given writer.
func Create ¶
Create runs the "task create" CLI command, connecting to the server, calling CreateTask, and writing output to the given writer. Tasks are loaded from the "files" arg. "files" are file paths to JSON objects.
func Get ¶
Get runs the "task get" CLI command, which connects to the server, calls GetTask for each ID, requesting the given task view, and writes output to the given writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.