mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(cli): attach org option to task create (#19554)
Attaches the org context options to the exp task create cmd
This commit is contained in:
@@ -23,7 +23,7 @@ func (r *RootCmd) taskCreate() *serpent.Command {
|
||||
taskInput string
|
||||
)
|
||||
|
||||
return &serpent.Command{
|
||||
cmd := &serpent.Command{
|
||||
Use: "create [template]",
|
||||
Short: "Create an experimental task",
|
||||
Middleware: serpent.Chain(
|
||||
@@ -123,4 +123,6 @@ func (r *RootCmd) taskCreate() *serpent.Command {
|
||||
return nil
|
||||
},
|
||||
}
|
||||
orgContext.AttachOptions(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user