2023-07-07 08:10:14 +00:00
|
|
|
package cli
|
|
|
|
|
2024-03-15 16:24:38 +00:00
|
|
|
import "github.com/coder/serpent"
|
2023-07-07 08:10:14 +00:00
|
|
|
|
2024-03-17 14:45:26 +00:00
|
|
|
func (r *RootCmd) expCmd() *serpent.Command {
|
|
|
|
cmd := &serpent.Command{
|
2023-07-07 08:10:14 +00:00
|
|
|
Use: "exp",
|
|
|
|
Short: "Internal commands for testing and experimentation. These are prone to breaking changes with no notice.",
|
2024-03-15 16:24:38 +00:00
|
|
|
Handler: func(i *serpent.Invocation) error {
|
2023-07-07 08:10:14 +00:00
|
|
|
return i.Command.HelpHandler(i)
|
|
|
|
},
|
|
|
|
Hidden: true,
|
2024-03-17 14:45:26 +00:00
|
|
|
Children: []*serpent.Command{
|
2023-07-07 08:10:14 +00:00
|
|
|
r.scaletestCmd(),
|
2023-09-29 21:50:23 +00:00
|
|
|
r.errorExample(),
|
2023-07-07 08:10:14 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
return cmd
|
|
|
|
}
|