mirror of
https://github.com/coder/coder.git
synced 2026-06-06 06:28:20 +00:00
5cc5bbea04
What this changes: - Unhides the `--key` flag on provisioner start - Deprecates and hides `provisionerd` command group in favor of `provisioner(s)` - Removes org id from `coder provisioner keys list`
39 lines
903 B
Go
39 lines
903 B
Go
package cli
|
|
|
|
import "github.com/coder/serpent"
|
|
|
|
func (r *RootCmd) provisionerDaemons() *serpent.Command {
|
|
cmd := &serpent.Command{
|
|
Use: "provisioner",
|
|
Short: "Manage provisioner daemons",
|
|
Handler: func(inv *serpent.Invocation) error {
|
|
return inv.Command.HelpHandler(inv)
|
|
},
|
|
Aliases: []string{"provisioners"},
|
|
Children: []*serpent.Command{
|
|
r.provisionerDaemonStart(),
|
|
r.provisionerKeys(),
|
|
},
|
|
}
|
|
|
|
return cmd
|
|
}
|
|
|
|
// The provisionerd command group is deprecated and hidden but kept around
|
|
// for backwards compatibility with the start command.
|
|
func (r *RootCmd) provisionerd() *serpent.Command {
|
|
cmd := &serpent.Command{
|
|
Use: "provisionerd",
|
|
Short: "Manage provisioner daemons",
|
|
Handler: func(inv *serpent.Invocation) error {
|
|
return inv.Command.HelpHandler(inv)
|
|
},
|
|
Children: []*serpent.Command{
|
|
r.provisionerDaemonStart(),
|
|
},
|
|
Hidden: true,
|
|
}
|
|
|
|
return cmd
|
|
}
|