consul-kv-search

command module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 7 Imported by: 0

README

Search for data in Consul K/V store and display key and value in console. You can search in keys, values or both (default). You can provide a search query as glob pattern (e.g. "data" this is the default) or regular expression pattern (e.g. ".data.").

Install

Download a pre-compiled binary for your operating system from here: https://github.com/pteich/consul-kv-search/releases You need just this binary. It works on macOS (OSX/Darwin), Linux and Windows.

Usage

consul-kv-search "*data*"
consul-kv-search -a "127.0.0.1:8500" -p "/my/start/path" "*data*"
consul-kv-search -a "127.0.0.1:8500" -r ".*data.*" 

CLI Options

Flag Default
-h --help show help
-v --version show version
-a --address 127.0.0.1:8500 Consul address
-t --token Consul access token
-w --wrap false Wrap text output
-p --path / path (prefix) in KV to start search
-r --regex false interpret query as regex pattern
--keys false search in keys only
--values false search in values only

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL