From 08ae736cbe05669cdf3653965ec3d36079e5f264 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 4 Jun 2018 22:29:15 +0200 Subject: [PATCH] Provide better command help for deploy and render commands. Closes #181 --- command/deploy.go | 6 +++++- command/render.go | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/command/deploy.go b/command/deploy.go index 6bce2fa0a..eae306e51 100644 --- a/command/deploy.go +++ b/command/deploy.go @@ -24,7 +24,11 @@ func (c *DeployCommand) Help() string { helpText := ` Usage: levant deploy [options] [TEMPLATE] - Deploy a Nomad job based on input templates and variable files. + Deploy a Nomad job based on input templates and variable files. The deploy + command supports passing variables individually on the command line. Multiple + commands can be passed in the format of -var 'key=value'. Variables passed + via the command line take precedence over the same variable declared within + a passed variable file. Arguments: diff --git a/command/render.go b/command/render.go index 6adf8178d..c5d8b046e 100644 --- a/command/render.go +++ b/command/render.go @@ -21,7 +21,11 @@ func (c *RenderCommand) Help() string { helpText := ` Usage: levant render [options] [TEMPLATE] - Render a Nomad job template, useful for debugging. + Render a Nomad job template, useful for debugging. Like deploy, the render + command also supports passing variables individually on the command line. + Multiple vars can be passed in the format of -var 'key=value'. Variables + passed via the command line take precedence over the same variable declared + within a passed variable file. Arguments: