mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
* feat: Add workspace proxy enterprise cli commands * chore: Handle custom workspace proxy options. Remove excess * chore: Add endpoint to register workspace proxies
27 lines
442 B
Go
27 lines
442 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.workspaceProxy(),
|
|
r.features(),
|
|
r.licenses(),
|
|
r.groups(),
|
|
r.provisionerDaemons(),
|
|
}
|
|
}
|
|
|
|
func (r *RootCmd) EnterpriseSubcommands() []*clibase.Cmd {
|
|
all := append(r.Core(), r.enterpriseOnly()...)
|
|
return all
|
|
}
|