mirror of
https://github.com/coder/coder.git
synced 2026-06-05 14:08:20 +00:00
252f430eb9
Closes https://github.com/coder/internal/issues/895 --------- Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
25 lines
454 B
Go
25 lines
454 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.taskList(),
|
|
r.taskCreate(),
|
|
r.taskStatus(),
|
|
r.taskDelete(),
|
|
r.taskSend(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|