Files
coder/enterprise/cli/root.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
498 B
Go
Raw Normal View History

2022-08-22 15:02:50 -07:00
package cli
import (
"github.com/coder/coder/v2/cli"
"github.com/coder/serpent"
2022-08-22 15:02:50 -07:00
)
2023-03-23 17:42:20 -05:00
type RootCmd struct {
cli.RootCmd
}
2024-03-17 09:45:26 -05:00
func (r *RootCmd) enterpriseOnly() []*serpent.Command {
return []*serpent.Command{
r.Server(nil),
r.workspaceProxy(),
2023-03-23 17:42:20 -05:00
r.features(),
r.licenses(),
r.groups(),
r.prebuilds(),
2023-03-23 17:42:20 -05:00
r.provisionerDaemons(),
r.provisionerd(),
2022-08-23 13:55:39 -07:00
}
}
2024-03-17 09:45:26 -05:00
func (r *RootCmd) EnterpriseSubcommands() []*serpent.Command {
all := append(r.CoreSubcommands(), r.enterpriseOnly()...)
2022-08-22 15:02:50 -07:00
return all
}