diff --git a/command/plan.go b/command/plan.go index dff4334ba..1bfe4a726 100644 --- a/command/plan.go +++ b/command/plan.go @@ -39,7 +39,8 @@ Usage: nomad plan [options] successfully and how it would affect existing allocations. If the supplied path is "-", the jobfile is read from stdin. Otherwise - it is read from the file at the supplied path. + it is read from the file at the supplied path or downloaded and + read from URL specified. A job modify index is returned with the plan. This value can be used when submitting the job using "nomad run -check-index", which will check that the job diff --git a/command/run.go b/command/run.go index eaf116b27..a755a1929 100644 --- a/command/run.go +++ b/command/run.go @@ -33,7 +33,8 @@ Usage: nomad run [options] used to interact with Nomad. If the supplied path is "-", the jobfile is read from stdin. Otherwise - it is read from the file at the supplied path. + it is read from the file at the supplied path or downloaded and + read from URL specified. Upon successful job submission, this command will immediately enter an interactive monitor. This is useful to watch Nomad's diff --git a/command/validate.go b/command/validate.go index 72acbae0e..164983374 100644 --- a/command/validate.go +++ b/command/validate.go @@ -18,7 +18,8 @@ Usage: nomad validate [options] check for any syntax errors or validation problems with a job. If the supplied path is "-", the jobfile is read from stdin. Otherwise - it is read from the file at the supplied path. + it is read from the file at the supplied path or downloaded and + read from URL specified. ` return strings.TrimSpace(helpText) } diff --git a/website/source/docs/commands/run.html.md.erb b/website/source/docs/commands/run.html.md.erb index 700416170..e3590b396 100644 --- a/website/source/docs/commands/run.html.md.erb +++ b/website/source/docs/commands/run.html.md.erb @@ -22,7 +22,9 @@ The run command requires a single argument, specifying the path to a file containing a valid [job specification](/docs/jobspec/index.html). This file will be read and the job will be submitted to Nomad for scheduling. If the supplied path is "-", the jobfile is read from STDIN. Otherwise it is read -from the file at the supplied path. +from the file at the supplied path or downloaded and read from URL specified. +Nomad downloads jobfile using [`go-getter`](https://github.com/hashicorp/go-getter) +and support `go-getter` syntax. By default, on successful job submission the run command will enter an interactive monitor and display log information detailing the scheduling diff --git a/website/source/docs/commands/validate.html.md.erb b/website/source/docs/commands/validate.html.md.erb index fce0d7030..5a05f4568 100644 --- a/website/source/docs/commands/validate.html.md.erb +++ b/website/source/docs/commands/validate.html.md.erb @@ -19,7 +19,11 @@ nomad validate The validate command requires a single argument, specifying the path to a file containing a [HCL job specification](/docs/jobspec/index.html). This file -will be read and the job checked for any problems. +will be read and the job checked for any problems. If the +supplied path is "-", the jobfile is read from STDIN. Otherwise it is read +from the file at the supplied path or downloaded and read from URL specified. +Nomad downloads jobfile using [`go-getter`](https://github.com/hashicorp/go-getter) +and support `go-getter` syntax. On successful validation, exit code 0 will be returned, otherwise an exit code of 1 indicates an error.