consul/command
Alex Dzyoba 4137d06f9f
command: change delim in columnize to funny node names (#6652)
When node name contains vertical bar symbol some commands output is
garbled because `|` is used as a delimiter in `columnize.SimpleFormat`.

This commit changes format string to use `\x1f` - ASCII unit
separator[1] as a delimiter and also adds test to cover this case.

Affected commands:

* `consul catalog nodes`
* `consul members`
* `consul operator raft list-peers`
* `consul intention get`

Fixes #3951.

[1]: https://en.wikipedia.org/wiki/Delimiter#Solutions
2020-03-09 11:24:56 +01:00
..
acl
agent agent: log error when agent crashes in an early stage (#7411) 2020-03-09 10:45:21 +01:00
catalog command: change delim in columnize to funny node names (#6652) 2020-03-09 11:24:56 +01:00
config
connect Fix -mesh-gateway flag help text (#7265) 2020-02-11 14:48:58 -06:00
debug
event
exec
flags cli: fix typo in -namespace help text (#7225) 2020-02-05 14:43:25 -06:00
forceleave
helpers
info
intention command: change delim in columnize to funny node names (#6652) 2020-03-09 11:24:56 +01:00
join
keygen
keyring
kv
leave
lock
login
logout
maint
members command: change delim in columnize to funny node names (#6652) 2020-03-09 11:24:56 +01:00
monitor monitor: fix dropped error (#7206) 2020-02-11 10:57:50 +01:00
operator command: change delim in columnize to funny node names (#6652) 2020-03-09 11:24:56 +01:00
reload
rtt
services
snapshot
tls cli: improve the file safety of 'consul tls' subcommands (#7186) 2020-01-31 10:12:36 -06:00
validate
version
watch
commands_oss.go
registry.go