mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
5baaf2747d
Closes https://github.com/coder/internal/issues/900 - Implements `coder exp task status` - Adds `testutil.MustURL` helper
23 lines
418 B
Go
23 lines
418 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(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|