From 5333d019b4d5c6477545a7ddbbd7d555cbbf030f Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Mon, 22 Jun 2020 10:27:09 -0400 Subject: [PATCH] accomodate enterprise specific commands `nomad operator snapshot agent` is an Enterprise specific command --- command/commands.go | 5 +++++ command/commands_oss.go | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 command/commands_oss.go diff --git a/command/commands.go b/command/commands.go index 6d9d60ea1..9a24e4f19 100644 --- a/command/commands.go +++ b/command/commands.go @@ -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 } diff --git a/command/commands_oss.go b/command/commands_oss.go new file mode 100644 index 000000000..83dae1bd2 --- /dev/null +++ b/command/commands_oss.go @@ -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{} +}