Files
coder/enterprise/cli/root.go
Mathias Fredriksson d2115941b7 refactor(cli)!: remove reset-password from slim binary (#9520)
This is an alternative approach to #9519 and removes 2 MB instead of 1
MB (1.2 MB accounted for by embedded migration SQL files).

Combined with #9481, #9506, #9508, #9517, a total of 5 MB is removed.

Ref: #9380
2023-09-04 19:38:53 +03:00

27 lines
451 B
Go

package cli
import (
"github.com/coder/coder/v2/cli"
"github.com/coder/coder/v2/cli/clibase"
)
type RootCmd struct {
cli.RootCmd
}
func (r *RootCmd) enterpriseOnly() []*clibase.Cmd {
return []*clibase.Cmd{
r.Server(nil),
r.workspaceProxy(),
r.features(),
r.licenses(),
r.groups(),
r.provisionerDaemons(),
}
}
func (r *RootCmd) EnterpriseSubcommands() []*clibase.Cmd {
all := append(r.Core(), r.enterpriseOnly()...)
return all
}