Commit Graph

30 Commits

Author SHA1 Message Date
Cameron Stokes
48e99e01f1 Fix inconsistencies in usage cli output. 2016-12-24 12:39:33 -08:00
Diptanu Choudhury
5eb4e8adb3 Making the status command return the allocs of currently registered job 2016-11-24 16:31:30 +01:00
Alex Dadgar
d4aa3fb831 Disallow fs to read secret directory 2016-10-24 11:14:05 -07:00
Alex Dadgar
049a7b030d fs uses timed unblocker like logs command 2016-08-11 19:07:13 -07:00
Kenjiro Nakayama
2247ca45f9 Add validation of -n and -c options 2016-08-01 21:51:13 +09:00
Alex Dadgar
fdaf530813 api.fs uses the api.Client rather than making raw requests 2016-07-28 14:27:17 -07:00
Kenjiro Nakayama
f31a53dfcf Add TestFSCommand_Fails to fs command 2016-07-26 22:45:09 +09:00
Alex Dadgar
2a32e839ac Add logs command test 2016-07-25 11:16:54 -07:00
Alex Dadgar
efc4700d42 fix indents 2016-07-25 11:16:54 -07:00
Alex Dadgar
8cb4f76a65 remove file events and last offset 2016-07-25 11:16:01 -07:00
Alex Dadgar
ac1cfd1821 unblock the readers to add liveness when using -n 2016-07-25 11:16:01 -07:00
Alex Dadgar
2530f7bd40 initial api and command 2016-07-25 11:16:01 -07:00
Alex Dadgar
509bf07d4d Docs 2016-07-21 12:33:05 -07:00
Alex Dadgar
a1b46b3a6d Allow following of files when cating and fix offsets 2016-07-13 15:33:17 -06:00
Alex Dadgar
991220b5c7 implement -n for tail 2016-07-13 13:26:09 -06:00
Alex Dadgar
25dd45c763 frames to reader 2016-07-12 17:34:32 -06:00
Alex Dadgar
ffb57ffd6f Address more comments 2016-07-12 10:45:05 -06:00
Alex Dadgar
3cc13aeca1 initial comments 2016-07-11 10:58:18 -06:00
Alex Dadgar
4f7c5fa502 StreamFramer encapsulates the sending, heartbeating and batching behavior of frames 2016-07-10 13:57:04 -04:00
Alex Dadgar
5b7ea09a7c Only initialize watcher once, fix offsetting, implement tail non-follow 2016-07-10 13:57:04 -04:00
Alex Dadgar
3159859949 initial command implementation 2016-07-10 13:57:04 -04:00
Chris Bednarski
6669cf8460 Change Modfied to Modified 2016-06-13 15:09:13 -07:00
Alex Dadgar
f3c1ef20fe use base 1024 for bytes not 1000 2016-06-12 14:20:39 -07:00
Alex Dadgar
38dbe768e7 Add eval-status and remove eval-monitor 2016-05-27 11:50:15 -07:00
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