#zookeeper #path #command #cli #node #verbose #tree-like

app zkli

围绕Zookeeper的命令行界面

4个版本 (2个破坏性更新)

0.3.1 2023年9月7日
0.3.0 2023年9月3日
0.2.0 2023年9月3日
0.1.0 2023年9月3日

#496 in 配置

WTFPL 许可证

15KB
292

Zkli

Cli around zookeeper

Usage: zkli [OPTIONS] <COMMAND>

Commands:
  ls      List directory contents
  tree    List contents of directories in a tree-like format
  cat     Print file
  rm      Remove directory entries
  write   Write the content of stdin or argv to the specified path. The path must already exists. See the create command if you need to create a new node
  create  Create a new file. Write the content of stdin or argv to the specified path. By default the file is created in persistent. If you override this value by ephemeral, the node will be deleted before the cli exit. By default the acls are set as: anyone can do anything
  help    Print this message or the help of the given subcommand(s)

Options:
  -a, --addr <ADDR>  The addr of the zookeeper server [default: localhost:2181/]
  -v...              The verbosity, the more `v` you use and the more verbose it gets
  -h, --help         Print help

安装

如果你是Rust用户

cargo install zkli

### 如果不是

加入本节: https://doc.rust-lang.net.cn/book/

依赖

~8–21MB
~257K SLoC