Skip to content

Commit 2a47837

Browse files
author
Takumasa Sakao
committed
Update version & README
1 parent f961d67 commit 2a47837

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Terminal based Conway's Game of Life. Implemented in Go.
1818
Go to release page and download.
1919

2020
```shell
21-
$ wget https://github.com/sachaos/go-life/releases/download/v0.3.0/go-life_darwin_amd64 -O /usr/local/bin/go-life
21+
$ wget https://github.com/sachaos/go-life/releases/download/v0.4.0/go-life_darwin_amd64 -O /usr/local/bin/go-life
2222
$ chmod +x /usr/local/bin/go-life
2323
```
2424

@@ -45,6 +45,20 @@ $ go-life
4545
$ go-life --theme Ocean --pattern glider-gun
4646
```
4747

48+
### Load pattern
49+
50+
#### Load from STDIN
51+
52+
```shell
53+
$ curl http://www.conwaylife.com/patterns/glider.rle | go-life --file -
54+
```
55+
56+
#### Load from file
57+
58+
```shell
59+
$ go-life --theme Ocean --file ./glider.lif
60+
```
61+
4862
### Help
4963

5064
```shell

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func main() {
107107
app := cli.NewApp()
108108
app.Name = "go-life"
109109
app.Usage = "Conway's Game of Life"
110-
app.Version = "0.3.0"
110+
app.Version = "0.4.0"
111111

112112
app.Flags = []cli.Flag{
113113
cli.BoolFlag{

0 commit comments

Comments
 (0)