mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
* coder licenses add CLI command Signed-off-by: Spike Curtis <spike@coder.com> * Fix up lint Signed-off-by: Spike Curtis <spike@coder.com> * Fix t.parallel call Signed-off-by: Spike Curtis <spike@coder.com> * Code review improvements Signed-off-by: Spike Curtis <spike@coder.com> * Lint Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
21 lines
366 B
Go
21 lines
366 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
agpl "github.com/coder/coder/cli"
|
|
"github.com/coder/coder/enterprise/coderd"
|
|
)
|
|
|
|
func enterpriseOnly() []*cobra.Command {
|
|
return []*cobra.Command{
|
|
agpl.Server(coderd.NewEnterprise),
|
|
licenses(),
|
|
}
|
|
}
|
|
|
|
func EnterpriseSubcommands() []*cobra.Command {
|
|
all := append(agpl.Core(), enterpriseOnly()...)
|
|
return all
|
|
}
|