accomodate enterprise specific commands

`nomad operator snapshot agent` is an Enterprise specific command
This commit is contained in:
Mahmood Ali
2020-06-22 10:27:09 -04:00
parent 935816b643
commit 5333d019b4
2 changed files with 14 additions and 0 deletions

View File

@@ -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
View 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{}
}