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