mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
Adds a command to render all the existing cli prompts we use. This is to validate a change to how our cli ui prompts look.
21 lines
472 B
Go
21 lines
472 B
Go
package cli
|
|
|
|
import "github.com/coder/serpent"
|
|
|
|
func (r *RootCmd) expCmd() *serpent.Command {
|
|
cmd := &serpent.Command{
|
|
Use: "exp",
|
|
Short: "Internal commands for testing and experimentation. These are prone to breaking changes with no notice.",
|
|
Handler: func(i *serpent.Invocation) error {
|
|
return i.Command.HelpHandler(i)
|
|
},
|
|
Hidden: true,
|
|
Children: []*serpent.Command{
|
|
r.scaletestCmd(),
|
|
r.errorExample(),
|
|
r.promptExample(),
|
|
},
|
|
}
|
|
return cmd
|
|
}
|