etcdsh

command module
v0.0.0-...-3423d09 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: MIT Imports: 15 Imported by: 0

README

shed

A SHell for EtcD

This is a shell for interacting with the hierarchy of keys and values withing an etcd cluster by navigating it as if it were a filesystem.

On start up, you start with the present working directory (pwd) set to "/"

Command line flags:

--peers (or -p) (comma delimited list of machine URLS to connect to) --username (or -u) (username[:password] - if no password, one will be prompted for) -d (debug)

Commands:

ls, pwd, set, get, env, exit

pwd

Print present working directory

ls

List content of directory

ls - list contents of pwd ls wildcard - list contents of pwd that match the wildcard ls path - list contents of path ls path/wildcard - list contents of path that match the wildcard (wild card paths not currently implemented)

set

Sets value of key

set path value

(value can be quoted)

get

Prints value of key

get path

env

Set an internal env variable

  • e[nv] s[imple] - Print values of keys only
  • e[nv] j[son] - Print the result as json
  • e[nv] p[retty] - Print the result as formatted json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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