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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址