diff --git a/README.md b/README.md index 1f6b794..0a978e9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Terminal based Conway's Game of Life. Implemented in Go. Go to release page and download. ```shell -$ wget https://github.com/sachaos/go-life/releases/download/v0.3.0/go-life_darwin_amd64 -O /usr/local/bin/go-life +$ wget https://github.com/sachaos/go-life/releases/download/v0.4.0/go-life_darwin_amd64 -O /usr/local/bin/go-life $ chmod +x /usr/local/bin/go-life ``` @@ -45,6 +45,20 @@ $ go-life $ go-life --theme Ocean --pattern glider-gun ``` +### Load pattern + +#### Load from STDIN + +```shell +$ curl http://www.conwaylife.com/patterns/glider.rle | go-life --file - +``` + +#### Load from file + +```shell +$ go-life --theme Ocean --file ./glider.lif +``` + ### Help ```shell diff --git a/main.go b/main.go index 5b83771..e776e8a 100644 --- a/main.go +++ b/main.go @@ -107,7 +107,7 @@ func main() { app := cli.NewApp() app.Name = "go-life" app.Usage = "Conway's Game of Life" - app.Version = "0.3.0" + app.Version = "0.4.0" app.Flags = []cli.Flag{ cli.BoolFlag{