fix(cli): remove exp scaletest from slim binary (#9934)

- Removes the `exp scaletest` command from the slim binary 
- Updates scaletest-runner template to fetch the full binary from the running Coder instance
This commit is contained in:
Cian Johnston
2023-10-03 15:13:04 +01:00
committed by GitHub
parent 45b53c285f
commit 9aac15212b
4 changed files with 74 additions and 4 deletions
+2
View File
@@ -1,3 +1,5 @@
//go:build !slim
package cli
import (
+18
View File
@@ -0,0 +1,18 @@
//go:build slim
package cli
import "github.com/coder/coder/v2/cli/clibase"
func (r *RootCmd) scaletestCmd() *clibase.Cmd {
cmd := &clibase.Cmd{
Use: "scaletest",
Short: "Run a scale test against the Coder API",
Handler: func(inv *clibase.Invocation) error {
SlimUnsupported(inv.Stderr, "exp scaletest")
return nil
},
}
return cmd
}