mirror of
https://github.com/coder/coder.git
synced 2026-06-05 14:08:20 +00:00
2bd6d2908e
I'm sorry.
26 lines
420 B
Go
26 lines
420 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/coder/coder/cli"
|
|
"github.com/coder/coder/cli/clibase"
|
|
)
|
|
|
|
type RootCmd struct {
|
|
cli.RootCmd
|
|
}
|
|
|
|
func (r *RootCmd) enterpriseOnly() []*clibase.Cmd {
|
|
return []*clibase.Cmd{
|
|
r.server(),
|
|
r.features(),
|
|
r.licenses(),
|
|
r.groups(),
|
|
r.provisionerDaemons(),
|
|
}
|
|
}
|
|
|
|
func (r *RootCmd) EnterpriseSubcommands() []*clibase.Cmd {
|
|
all := append(r.Core(), r.enterpriseOnly()...)
|
|
return all
|
|
}
|