Skip to content

Commit 1bc2e5c

Browse files
committed
refactor(cli): remove scaletest from slim binary
This change removes 3 MB when combined with #9483. Ref: #9380, #9483
1 parent 6fc1f52 commit 1bc2e5c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

cli/exp_scaletest.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !slim
2+
13
package cli
24

35
import (

cli/exp_scaletest_slim.go

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//go:build slim
2+
3+
package cli
4+
5+
import "github.com/coder/coder/v2/cli/clibase"
6+
7+
func (r *RootCmd) scaletestCmd() *clibase.Cmd {
8+
cmd := &clibase.Cmd{
9+
Use: "scaletest",
10+
Short: "Run a scale test against the Coder API",
11+
RawArgs: true, // We accept RawArgs so all commands and flags are accepted.
12+
Hidden: true,
13+
Handler: func(inv *clibase.Invocation) error {
14+
SlimUnsupported(inv.Stderr, "exp scaletest")
15+
return nil
16+
},
17+
}
18+
19+
return cmd
20+
}

0 commit comments

Comments
 (0)