Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(cli): remove exp scaletest from slim binary
  • Loading branch information
johnstcn committed Oct 3, 2023
commit 0abd25b89ac4f838fb4f4122f44eb011cec4c438
2 changes: 2 additions & 0 deletions cli/exp_scaletest.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !slim

package cli

import (
Expand Down
18 changes: 18 additions & 0 deletions cli/exp_scaletest_slim.go
Original file line number Diff line number Diff line change
@@ -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, "scaletest")
return nil
},
}

return cmd
}