Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 632 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 632 Bytes

Obtaining the code

go get github.com/niemeyer/flex

Running the tool

cd $GOPATH/src/github.com/niemeyer/flex
cd cmd/flex
go build

# FLEX_DIR defaults to /var/lib/flex and holds the unix socket.
export FLEX_DIR=$PWD

# On one terminal, run the daemon:
./flex daemon --debug

# On another terminal, ping it:
./flex ping --debug
./flex create c1
./flex list
./flex start c1
./flex attach c1
# play in the root@c1 shell, then exit
./flex stop c1

Running tests

cd $GOPATH/src/github.com/niemeyer/flex
go test