consul/command
R.B. Boyer 5146810acc
cli: do not hide the resource HCL parsing error and replace it with a JSON error (#19107)
We serially attempt to decode resources in the consul resource apply command
using HCL and then falling back on JSON. This causes the HCL errors to be 
dropped completely in the case where the HCL decode failed due to a typo 
instead of it actually being JSON instead.

This PR proposes sniffing to see if the first non-whitespace character in the 
input is { and if so treat it as JSON, otherwise as HCL and not 
double-decode on error.
2023-10-11 11:37:50 -05:00
..
acl Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
agent [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
catalog Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
cli [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
config [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
connect Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
debug NET-4519 Collecting journald logs in "consul debug" bundle (#18797) 2023-09-19 08:46:50 +05:30
event [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
exec [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
flags Net 2714/xw cli read command (#18462) 2023-09-05 09:17:19 -07:00
forceleave [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
helpers [NET-5325] ACL templated policies support in tokens and roles (#18708) 2023-09-08 12:45:24 +00:00
info [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
intention [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
join [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
keygen [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
keyring [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
kv [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
leave [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
lock Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
login Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
logout [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
maint [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
members [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
monitor [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
operator Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00
peering [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
reload [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
resource cli: do not hide the resource HCL parsing error and replace it with a JSON error (#19107) 2023-10-11 11:37:50 -05:00
rtt [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
services [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
snapshot Removed nodename and status from consul snapshot save -append-filename command and using leader version in version (#18680) 2023-09-06 15:49:25 +05:30
tls [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
troubleshoot [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
validate [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
version [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
watch [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
registry.go [NET-5334] Added CLI commands for templated policies (#18816) 2023-09-14 20:14:55 +00:00
registry_ce.go Remove old build tags (#19128) 2023-10-10 10:58:06 -04:00