open-consul/command
Blake Covarrubias 41b2f08695
cli: Fix broken KV import on Windows (#10820)
Consul 1.10 (PR #9792) introduced the ability to specify a prefix when
importing KV's. This however introduced a regression on Windows
systems which breaks `kv import`. The key name is joined with
specified`-prefix` using `filepath.Join()` which uses a forward slash
(/) to delimit values on Unix-based systems, and a backslash (\) to
delimit values on Windows – the latter of which is incompatible with
Consul KV paths.

This commit replaces filepath.Join() with path.Join() which uses a
forward slash as the delimiter, providing consistent key join behavior
across supported operating systems.

Fixes #10583
2021-08-10 14:42:05 -07:00
..
acl acl: remove rule == nil checks 2021-07-30 13:58:35 -04:00
agent Apply suggestions from code review 2021-07-13 12:31:49 -04:00
catalog add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
cli cmd: introduce a shim to expose Stdout/Stderr writers 2021-06-02 16:51:34 -04:00
config add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
connect cli: Use admin bind address in self_admin cluster (#10757) 2021-08-09 17:10:32 -07:00
debug http: emit indented JSON in the metrics stream endpoint 2021-07-26 17:53:33 -04:00
event testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
exec Replace use of 'sane' where appropriate 2021-07-02 12:18:46 -04:00
flags add http flag for admin partition (#10683) 2021-07-22 16:46:02 -04:00
forceleave testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
helpers Centralized Config CLI (#5731) 2019-04-30 16:27:16 -07:00
info testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
intention add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
join testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
keygen Update default gossip encryption key size to 32 bytes 2019-07-30 09:45:41 -06:00
keyring testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
kv cli: Fix broken KV import on Windows (#10820) 2021-08-10 14:42:05 -07:00
leave testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
lock testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
login add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
logout testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
maint Fix maint test 2021-07-30 12:58:46 -04:00
members testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
monitor fix monitor to only start the monitor in json format when requested (#10358) 2021-06-07 12:08:48 -04:00
operator testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
reload testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
rtt testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
services add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
snapshot Fix panic bug in snapshot inspect (#10091) 2021-04-23 20:48:10 +01:00
tls introduce certopts (#9606) 2021-03-22 10:16:41 +01:00
validate config: replace calls to config.NewBuilder with config.Load 2021-01-27 17:34:43 -05:00
version add v to version pretty formatter (#8341) 2020-07-20 17:43:10 -04:00
watch cli: Test API access using /status/leader in consul watch (#10795) 2021-08-09 09:00:33 -07:00
commands_oss.go cmd: introduce a shim to expose Stdout/Stderr writers 2021-06-02 16:51:34 -04:00
registry.go cmd: introduce a shim to expose Stdout/Stderr writers 2021-06-02 16:51:34 -04:00