mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
3470632db3
Fixes coder/internal#897
24 lines
437 B
Go
24 lines
437 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(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|