mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
63c1325ad5
Partially implements https://github.com/coder/internal/issues/893 This isn't the full implementation of `coder exp tasks create` as defined in the issue, but it is the minimum required to create a task.
22 lines
399 B
Go
22 lines
399 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(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|