simple

command
v0.0.0-...-12def25 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

Simple CLI demo

This demonstrates how dynamic values are being updated in a simple CLI app.

Quick set up:

Download etcd, extract and make it available on your $PATH.

Launch etcd server serving from a default.data in /tmp:

cd /tmp
etcd 

Set up a set of flags:

etcdctl mkdir /example/flagz
etcdctl set /example/flagz/example_my_static_int 9090
etcdctl set /example/flagz/example_my_dynamic_int foo

Play around:

./simple_cli &
etcdctl set /example/flagz/example_my_dynamic_string bar
etcdctl set /example/flagz/example_my_dynamic_int 7777
etcdctl set /example/flagz/example_my_dynamic_string bad_value

Profit.

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