File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Terminal based Conway's Game of Life. Implemented in Go.
18
18
Go to release page and download.
19
19
20
20
``` 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
22
22
$ chmod +x /usr/local/bin/go-life
23
23
```
24
24
@@ -45,6 +45,20 @@ $ go-life
45
45
$ go-life --theme Ocean --pattern glider-gun
46
46
```
47
47
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
+
48
62
### Help
49
63
50
64
``` shell
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ func main() {
107
107
app := cli .NewApp ()
108
108
app .Name = "go-life"
109
109
app .Usage = "Conway's Game of Life"
110
- app .Version = "0.3 .0"
110
+ app .Version = "0.4 .0"
111
111
112
112
app .Flags = []cli.Flag {
113
113
cli.BoolFlag {
You can’t perform that action at this time.
0 commit comments