Files
coder/enterprise/cli/root.go
T

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

40 lines
892 B
Go
Raw Normal View History

2022-08-22 15:02:50 -07:00
package cli
import (
agplcli "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 {
agplcli.RootCmd
2023-03-23 17:42:20 -05:00
}
2024-03-17 09:45:26 -05:00
func (r *RootCmd) enterpriseOnly() []*serpent.Command {
return []*serpent.Command{
// These commands exist in AGPL, but we use a different implementation
// in enterprise:
r.Server(nil),
r.provisionerDaemons(),
agplcli.ExperimentalCommand(append(r.AGPLExperimental(), r.enterpriseExperimental()...)),
// New commands that don't exist in AGPL:
2026-01-23 12:56:36 -05:00
r.boundary(),
r.workspaceProxy(),
2023-03-23 17:42:20 -05:00
r.features(),
r.licenses(),
r.groups(),
r.prebuilds(),
r.provisionerd(),
r.externalWorkspaces(),
r.aibridge(),
2022-08-23 13:55:39 -07:00
}
}
func (*RootCmd) enterpriseExperimental() []*serpent.Command {
return []*serpent.Command{}
}
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
}