read from file or stdin, add readme

This commit is contained in:
2020-05-08 08:21:19 +08:00
parent 4b6c5119b1
commit 57bc12a692
3 changed files with 89 additions and 4 deletions

View File

@@ -1,3 +1,39 @@
# grassmudhorse.rs
Grass Mud Horse in Rust
Grass Mud Horse in Rust
help:
```shell
$ ./target/debug/grassmudhorse -h
grassmudhorse.rs v0.1
```
execute from file:
```shell
$ ./target/debug/grassmudhorse print-110.gmh
1
2
3
4
5
6
7
8
9
10
```
execute from stdin:
```shell
$ cat print-110.gmh | ./target/debug/grassmudhorse
1
2
3
4
5
6
7
8
9
10
```