https://github.com/codepope/shed
A shell for etcd
https://github.com/codepope/shed
Last synced: 6 months ago
JSON representation
A shell for etcd
- Host: GitHub
- URL: https://github.com/codepope/shed
- Owner: codepope
- License: mit
- Created: 2015-10-06T09:39:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-11T14:15:07.000Z (over 10 years ago)
- Last Synced: 2025-01-13T17:19:45.145Z (about 1 year ago)
- Language: Go
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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