tree: 03eb36046b861d506de72025d261c5bd963215fb [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. meta/
  4. src/
src/sys/tools/stash_ctl/README.md

stash_ctl

Reviewed on: 2019-07-22

stash_ctl exists to be a reference implementation for stash. It's a command line tool that always reports its identity as stash_ctl to the stash service, thus making it unsuitable for interacting with data store in stash by other clients.

Building

To add this project to your build, append --with //src/sys/tools/stash_ctl to the fx set invocation.

Running

stash_ctl is accessible via the shell:

$ fx shell run stash_ctl --help

Testing

There are no unit tests for stash_ctl. It can be manually tested against the stash service.

$ fx shell run stash_ctl set foo int 3
$ fx shell run stash_ctl get foo

Source layout

The implementation is located in src/main.rs.