Commit Graph

6 Commits

Author SHA1 Message Date
Alex Dadgar
2b09a4c302 improve help message for fs missing input 2016-05-16 11:08:28 -07:00
Jake Champlin
c1ef910f4d Update per comments 2016-05-16 13:17:37 -04:00
Jake Champlin
d4b8133220 Refactor fs subcommands into fs command
Refactors `nomad fs` command to eliminate `fs` subcommands.
Automatically displays the file, if the path specified is a file; lists
the directory if the path is a directory; or displays stat information
if the `-stat` flag is set.

Currently running `nomad fs ls` to find a file, then running the exact
same command with the exception of `cat` instead of `ls` is time
consuming and awkward. This allows operational testing to be greatly
enhanced, and makes our lives so much better.
2016-05-04 23:59:38 -07:00
Ivo Verberk
b7bc3aae6f Fixes a panic when fs commands with a job parameter return zero allocations 2016-04-07 20:22:09 +02:00
Jake Champlin
54ba2c025f Allow fs commands to use job-id
Adds `-job` flag argument to `nomad fs` commands to randomly lookup a
job's allocation-id to use in an `fs` command.

Can be used when debugging a job, where a specific allocation ID is not
a strict requirement.
2016-03-18 15:05:35 -04:00
Alex Dadgar
9d528d3884 Display fs in nomad help and list the subcommands when called 2016-02-05 11:01:29 -08:00