mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
coder licenses add CLI command (#3632)
* 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>
This commit is contained in:
@@ -7,7 +7,14 @@ import (
|
||||
"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(), agpl.Server(coderd.NewEnterprise))
|
||||
all := append(agpl.Core(), enterpriseOnly()...)
|
||||
return all
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user