Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Apr 16, 2023
1 parent 847e382 commit e381743
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 5 deletions.
39 changes: 34 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Grow github grass to console.

## Installation

```console
```sh
$ gh extension install koki-develop/gh-grass
```

Expand All @@ -32,28 +32,57 @@ Usage:
Flags:
-u, --user string github username
-t, --theme string grass theme (dark|light) (default "dark")
-g, --grass string grass string (default "■")
--total print total contributions
-h, --help help for gh
```

### Basic

```console
```sh
$ gh grass
```

![demo](./docs/demo.gif)

### Specify a User

You can specify a user with the `-u` or `--user` flag.

```console
```sh
$ gh grass --user <USERNAME>
# e.g.
$ gh grass --user koki-develop
```

![](./docs/user.gif)

### Change Theme

```sh
$ gh grass --theme <dark or light>
# e.g.
$ gh grass --theme light
```

![](./docs/theme.gif)

### Print Total Contributions

```sh
$ gh grass --total
```

![](./docs/total.gif)

### Custom Grass

```sh
$ gh grass --grass "<GRASS STRING>"
# e.g.
$ gh grass --grass ""
```

![](./docs/grass.gif)

## LICENSE

[MIT](./LICENSE)
Binary file modified docs/demo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/grass.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/theme.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/total.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/user.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions tapes/grass.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Output docs/grass.gif

Require gh

Set Shell "bash"
Set FontSize 32
Set Width 2200
Set Height 600
Set PlaybackSpeed 0.6

Hide
Type "go build ." Enter
Type "gh extension remove grass" Enter
Type "gh extension install ." Enter
Type "gh grass --help" Enter
Ctrl+l
Sleep 3s
Show

Type 'gh grass --grass "●"' Sleep 500ms Enter

Sleep 5s
22 changes: 22 additions & 0 deletions tapes/theme.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Output docs/theme.gif

Require gh

Set Shell "bash"
Set FontSize 32
Set Width 2200
Set Height 600
Set PlaybackSpeed 0.6

Hide
Type "go build ." Enter
Type "gh extension remove grass" Enter
Type "gh extension install ." Enter
Type "gh grass --help" Enter
Ctrl+l
Sleep 3s
Show

Type "gh grass --theme light" Sleep 500ms Enter

Sleep 5s
22 changes: 22 additions & 0 deletions tapes/total.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Output docs/total.gif

Require gh

Set Shell "bash"
Set FontSize 32
Set Width 2200
Set Height 600
Set PlaybackSpeed 0.6

Hide
Type "go build ." Enter
Type "gh extension remove grass" Enter
Type "gh extension install ." Enter
Type "gh grass --help" Enter
Ctrl+l
Sleep 3s
Show

Type "gh grass --total" Sleep 500ms Enter

Sleep 5s

0 comments on commit e381743

Please sign in to comment.