Luiz Aoqui
03433dd8af
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
02bef2df0a
bad boolean logic for List-on-Info commands
2021-02-03 21:29:05 +00:00
Kris Hicks
0a3a748053
Add gosimple linter ( #9590 )
2020-12-09 11:05:18 -08:00
Tim Gross
de6b023af2
command: remove -namespace from help options when not applicable
2020-11-19 16:28:39 -05:00
Kris Hicks
48a260fc33
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
8d980edd2e
add create and modify timestamps to evaluations ( #5881 )
2019-08-07 09:50:35 -07:00
Nick Ethier
182e3bec1b
command: improve help text when invalid arguments are given
2018-04-18 12:02:11 -04:00
Preetha Appan
affaa12260
Show wait until value in eval status if it is set
2018-04-11 14:01:42 -05:00
Alex Dadgar
9ab32ab7e6
Fix eval status output for alloc failure
2018-04-06 17:16:43 -07:00
Alex Dadgar
b5bee9e06b
use subcommands
2018-03-21 20:27:32 -07:00
Josh Soref
f28efbbc79
spelling: sanitize
2018-03-11 18:52:59 +00:00
Alex Dadgar
4173834231
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
96e226f1ee
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
93add81844
Check for errors initializing client for autocomplete
2017-08-29 14:29:32 -07:00
Alex Dadgar
52fa3396e7
use helper
2017-08-29 10:04:02 -07:00
Alex Dadgar
8c1573642d
status commands handle uuid prefixes with hyphens
2017-08-29 09:43:28 -07:00
Alex Dadgar
5182ebb8cf
don't limit on one arg
2017-08-28 13:40:04 -07:00
Alex Dadgar
1df249f1fb
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
d7d8661485
Search respects QueryOptions and returns QueryMeta
...
@chelseakomlo heads up on this change
2017-08-27 22:17:51 -07:00
Chelsea Holland Komlo
ed2a544502
add global flags to autocomplete
2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
35f5c8f2dd
use PredictAnything when an flag accepts an argument
2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
2721e5890f
enable autocompletion of flags
2017-08-23 22:57:07 +00:00
Alex Dadgar
00947f3ff4
move autocomplete functions to top for consistency of placement
2017-08-22 13:41:42 -07:00
Chelsea Holland Komlo
c083af1e7c
tab completion should only happen once
2017-08-16 17:04:47 +00:00
Chelsea Holland Komlo
499de71dfd
adding autocomplete for nodes, evals, and jobs
2017-08-14 20:44:28 +00:00
Alex Dadgar
f8b9fc4124
Fix eval-status bug
2017-07-25 17:37:09 -07:00
Alex Dadgar
40ca1298b3
Multiple matched objects now treated as an error condition.
2017-07-20 17:31:07 -07:00
Alex Dadgar
780de092ce
Formatting abilities
2017-07-07 12:07:07 -07:00
Cameron Stokes
249fd8bf42
Fix inconsistencies in usage cli output.
2016-12-24 12:39:33 -08:00
Kenjiro Nakayama
c9e696d750
Update after another review
2016-08-09 22:50:18 +09:00
Kenjiro Nakayama
32d20c8453
Add test to check both -json and -t are not specified
2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
b5b6297cd3
Support JSON and template data output list when no args specified
2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
770f37881f
Update help and error message
2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
64340a6e1b
Stop using format option and support json and t option
2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
41cf333c51
Support JSON and template format with nomad CLI
2016-08-09 21:06:20 +09:00
Alex Dadgar
e931b42473
unify cli output
2016-06-12 13:16:07 -07:00
Alex Dadgar
f006aeeb20
helper
2016-06-10 11:02:15 -07:00
Alex Dadgar
93a8af1422
better placement failure text for blocked evals
2016-06-10 10:56:32 -07:00
Alex Dadgar
b1298bb658
plan shows failure reasons and ordered annotations
2016-05-31 21:51:23 +00:00
Alex Dadgar
8b7d3e90a9
Clean failed placement output
2016-05-31 18:18:58 +00:00
Alex Dadgar
55d48196b2
eval-status website docs
2016-05-27 11:50:15 -07:00
Alex Dadgar
10c2e8449f
Show failure reason in status
2016-05-27 11:50:15 -07:00
Alex Dadgar
57770de1fc
Add eval-status and remove eval-monitor
2016-05-27 11:50:15 -07:00