mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
accomodate enterprise specific commands
`nomad operator snapshot agent` is an Enterprise specific command
This commit is contained in:
@@ -791,5 +791,10 @@ func Commands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory {
|
||||
for k, v := range deprecated {
|
||||
all[k] = v
|
||||
}
|
||||
|
||||
for k, v := range EntCommands(metaPtr, agentUi) {
|
||||
all[k] = v
|
||||
}
|
||||
|
||||
return all
|
||||
}
|
||||
|
||||
9
command/commands_oss.go
Normal file
9
command/commands_oss.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// +build !ent
|
||||
|
||||
package command
|
||||
|
||||
import "github.com/mitchellh/cli"
|
||||
|
||||
func EntCommands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory {
|
||||
return map[string]cli.CommandFactory{}
|
||||
}
|
||||
Reference in New Issue
Block a user