Joel Watson
ff0009bd91
Fix some minor wording issues
2020-11-11 11:33:38 -06:00
Joel Watson
31f3742308
Back out implicit -kvdetails functionality
2020-11-11 10:46:51 -06:00
Joel Watson
2adbfbe8d4
Length check is required here
...
If one isn't included, then the nil check in the formatter never fails due to an empty slice being passed in, which causes the kv output to always get printed.
2020-11-11 10:44:55 -06:00
Joel Watson
5f2896d4a7
Add more func comments
2020-11-10 16:40:12 -06:00
Joel Watson
8bb2a274ce
Move kvDetails default logic
2020-11-10 16:39:40 -06:00
Joel Watson
99698737d9
Check for nil rather than length
2020-11-10 16:39:12 -06:00
Joel Watson
f29a28e038
Allow omission of -kvdetails if another -kv* flag is set
2020-11-10 10:55:30 -06:00
Joel Watson
aa21a32ca5
Rename params to better reflect their purpose
2020-11-10 10:44:09 -06:00
Joel Watson
4298a0f7e1
Make docs for params clearer
2020-11-10 10:35:24 -06:00
Joel Watson
0553532e00
Break KV portion of enchance into separate func
2020-11-10 10:29:49 -06:00
Joel Watson
354ff0a0d1
Move KV stat gen to separate func
2020-11-10 10:09:03 -06:00
Joel Watson
2327149854
Pull sorting into separate function
2020-11-05 16:25:21 -06:00
Joel Watson
ce61ef6170
Refactor to reduce how many vars are being passed around
2020-11-05 14:26:47 -06:00
Joel Watson
1b2680af04
Fallback to alphabetic sorting if size is equal
2020-11-05 11:02:02 -06:00
Joel Watson
f93df8ce35
Make key breakdown total size accurate
2020-11-05 10:32:23 -06:00
Joel Watson
0918d8dbc0
Get JSON formatting working
2020-11-04 14:04:17 -06:00
Joel Watson
fd5b94443e
This ended up not being used.
2020-11-04 10:30:38 -06:00
Joel Watson
ed91bf8a62
Add snapshot inspect filter param
2020-11-04 10:11:20 -06:00
Joel Watson
bc1a55cd09
Initial stab at snapshot inspect key breakdown
2020-11-03 18:00:44 -06:00
s-christoff
ee3eb03f50
cli: Add JSON and Pretty Print formatting for `consul snapshot inspect` ( #9006 )
2020-10-29 11:31:14 -05:00
s-christoff
a62705101f
Enhance the output of consul snapshot inspect ( #8787 )
2020-10-09 14:57:29 -05:00
Kyle Havlovitz
fb464a8c0d
Fix a panic in snapshot inspect command
2017-10-30 14:51:08 -07:00
Frank Schroeder
8f58a603ea
commands: get HTTP API flags for usage automatically
2017-10-18 00:08:45 +02:00
Frank Schroeder
efab66e616
commands: cleanup help and synopsis.
...
* move Help and Synopsis to bottom
* make help and synopsis constants
* make sure help output is formatted
2017-10-18 00:08:45 +02:00
Frank Schroeder
abd7c73627
commands: move snapshot subcommands to subdirs
2017-10-18 00:08:45 +02:00