mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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
27 lines
451 B
Go
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
|
|
}
|