mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
26 lines
471 B
Go
26 lines
471 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/coder/serpent"
|
|
)
|
|
|
|
func (r *RootCmd) tasksCommand() *serpent.Command {
|
|
cmd := &serpent.Command{
|
|
Use: "task",
|
|
Aliases: []string{"tasks"},
|
|
Short: "Experimental task commands.",
|
|
Handler: func(i *serpent.Invocation) error {
|
|
return i.Command.HelpHandler(i)
|
|
},
|
|
Children: []*serpent.Command{
|
|
r.taskCreate(),
|
|
r.taskDelete(),
|
|
r.taskList(),
|
|
r.taskLogs(),
|
|
r.taskSend(),
|
|
r.taskStatus(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|