open-consul/command/kv
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
..
del add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
exp add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
get add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
imp cli: Fix broken KV import on Windows (#10820) 2021-08-10 14:42:05 -07:00
impexp OSS KV Modifications to Support Namespaces 2019-11-25 12:57:35 -05:00
put add partition cli flag to all cli commands that have namespace flag (#10668) 2021-07-21 14:45:24 -05:00
kv.go commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
kv_test.go commands: run all tests in parallel (again) 2017-10-18 00:08:45 +02:00