Commit Graph

43 Commits

Author SHA1 Message Date
Luiz Aoqui
52389ff726 cli: improve output of eval commands (#13581)
Use the same output format when listing multiple evals in the `eval
list` command and when `eval status <prefix>` matches more than one
eval.

Include the eval namespace in all output formats and always include the
job ID in `eval status` since, even `node-update` evals are related to a
job.

Add Node ID to the evals table output to help differentiate
`node-update` evals.

Co-authored-by: James Rasell <jrasell@hashicorp.com>
2022-07-07 13:13:34 -04:00
Chris Baker
fbdbd7736c bad boolean logic for List-on-Info commands 2021-02-03 21:29:05 +00:00
Kris Hicks
85ed8ddd4f Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
Tim Gross
89f4f51746 command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
Kris Hicks
0e09747d5b Update monitor func not to take a prefix (#9251)
The only user of monitor(evalID, true) was command/eval_status, and
eval_status had a duplicate of the prefix-handling code inside it, so in
all cases the complete evalID was being passed to monitor.

Given that, we can remove the prefix code from command/monitor, and
remove the boolean arg.
2020-11-02 10:24:49 -08:00
Jasmine Dahilig
1bdb111127 add create and modify timestamps to evaluations (#5881) 2019-08-07 09:50:35 -07:00
Nick Ethier
45b0ce9177 command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
Preetha Appan
2ec37d3e61 Show wait until value in eval status if it is set 2018-04-11 14:01:42 -05:00
Alex Dadgar
66e1763107 Fix eval status output for alloc failure 2018-04-06 17:16:43 -07:00
Alex Dadgar
c7fc6571d8 use subcommands 2018-03-21 20:27:32 -07:00
Josh Soref
e1eb3e4684 spelling: sanitize 2018-03-11 18:52:59 +00:00
Alex Dadgar
a9e3a41407 Enable more linters 2017-09-26 15:26:33 -07:00
Alex Dadgar
c85e8aa02f Merge pull request #3127 from hashicorp/b-tls-api
Fix TLSServerName for Node API Client
2017-08-29 16:10:58 -07:00
Alex Dadgar
5d65af523d Check for errors initializing client for autocomplete 2017-08-29 14:29:32 -07:00
Alex Dadgar
b86e05b4a0 use helper 2017-08-29 10:04:02 -07:00
Alex Dadgar
0852c0ab3a status commands handle uuid prefixes with hyphens 2017-08-29 09:43:28 -07:00
Alex Dadgar
ce3c316592 don't limit on one arg 2017-08-28 13:40:04 -07:00
Alex Dadgar
85a1899dfa Reduce startup time on Mac
This PR moves creating the API client into the returned predict
function. The creation of the client causes a lookup of all the system
certificates and doing that for each command on mac was extremely slow.
2017-08-28 11:29:27 -07:00
Alex Dadgar
4d97b302a0 Search respects QueryOptions and returns QueryMeta
@chelseakomlo heads up on this change
2017-08-27 22:17:51 -07:00
Chelsea Holland Komlo
e88228cc5d add global flags to autocomplete 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
335cf888b0 use PredictAnything when an flag accepts an argument 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
c1e5c7132a enable autocompletion of flags 2017-08-23 22:57:07 +00:00
Alex Dadgar
d493797b49 move autocomplete functions to top for consistency of placement 2017-08-22 13:41:42 -07:00
Chelsea Holland Komlo
ca6562adbd tab completion should only happen once 2017-08-16 17:04:47 +00:00
Chelsea Holland Komlo
6f0413528a adding autocomplete for nodes, evals, and jobs 2017-08-14 20:44:28 +00:00
Alex Dadgar
82e128f038 Fix eval-status bug 2017-07-25 17:37:09 -07:00
Alex Dadgar
3cd8d50bbc Multiple matched objects now treated as an error condition. 2017-07-20 17:31:07 -07:00
Alex Dadgar
468c886282 Formatting abilities 2017-07-07 12:07:07 -07:00
Cameron Stokes
48e99e01f1 Fix inconsistencies in usage cli output. 2016-12-24 12:39:33 -08:00
Kenjiro Nakayama
5aceb8eacf Update after another review 2016-08-09 22:50:18 +09:00
Kenjiro Nakayama
7d804a41c7 Add test to check both -json and -t are not specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4edc906be4 Support JSON and template data output list when no args specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4a3f63f641 Update help and error message 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
02613e170b Stop using format option and support json and t option 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
6c694014b4 Support JSON and template format with nomad CLI 2016-08-09 21:06:20 +09:00
Alex Dadgar
fb81caa1bb unify cli output 2016-06-12 13:16:07 -07:00
Alex Dadgar
185c896ac0 helper 2016-06-10 11:02:15 -07:00
Alex Dadgar
f6aa384efb better placement failure text for blocked evals 2016-06-10 10:56:32 -07:00
Alex Dadgar
c77026f5da plan shows failure reasons and ordered annotations 2016-05-31 21:51:23 +00:00
Alex Dadgar
f5398d25e2 Clean failed placement output 2016-05-31 18:18:58 +00:00
Alex Dadgar
c993b51c4b eval-status website docs 2016-05-27 11:50:15 -07:00
Alex Dadgar
edbbcd5deb Show failure reason in status 2016-05-27 11:50:15 -07:00
Alex Dadgar
38dbe768e7 Add eval-status and remove eval-monitor 2016-05-27 11:50:15 -07:00