2022-08-22 22:02:50 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
2023-08-18 18:55:43 +00:00
|
|
|
"github.com/coder/coder/v2/cli"
|
2024-03-15 16:24:38 +00:00
|
|
|
"github.com/coder/serpent"
|
2022-08-22 22:02:50 +00:00
|
|
|
)
|
|
|
|
|
2023-03-23 22:42:20 +00:00
|
|
|
type RootCmd struct {
|
|
|
|
cli.RootCmd
|
|
|
|
}
|
|
|
|
|
2024-03-17 14:45:26 +00:00
|
|
|
func (r *RootCmd) enterpriseOnly() []*serpent.Command {
|
|
|
|
return []*serpent.Command{
|
2023-09-01 13:32:21 +00:00
|
|
|
r.Server(nil),
|
2023-04-20 14:48:47 +00:00
|
|
|
r.workspaceProxy(),
|
2023-03-23 22:42:20 +00:00
|
|
|
r.features(),
|
|
|
|
r.licenses(),
|
|
|
|
r.groups(),
|
|
|
|
r.provisionerDaemons(),
|
2022-08-23 20:55:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-17 14:45:26 +00:00
|
|
|
func (r *RootCmd) EnterpriseSubcommands() []*serpent.Command {
|
2023-03-23 22:42:20 +00:00
|
|
|
all := append(r.Core(), r.enterpriseOnly()...)
|
2022-08-22 22:02:50 +00:00
|
|
|
return all
|
|
|
|
}
|