Documentation ¶
Index ¶
- func Cancel(server string, ids []string, writer io.Writer) error
- func Create(server string, files []string, reader io.Reader, writer io.Writer) error
- func Get(server string, ids []string, taskView string, w io.Writer) error
- func List(server, taskView, pageToken, stateFilter string, tagsFilter []string, ...) 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.
func List ¶
func List(server, taskView, pageToken, stateFilter string, tagsFilter []string, namePrefix string, pageSize int32, all bool, writer io.Writer) error
List runs the "task list" CLI command, which connects to the server, calls ListTasks() and requests the given task view. Output is written to the given writer.
Types ¶
This section is empty.