Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Latest commit

 

History

History
 
 

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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/staticint 9090
etcdctl set /example/flagz/dynstring foo

Play around by launching the server and visitng http://localhost:8080:

./simplesrv &
etcdctl set /example/flagz/example_my_dynamic_string "I'm santient"
etcdctl set /example/flagz/example_my_dynamic_int 12345

Marvel at the flagz endpoint).