Skip to content

Commit

Permalink
Rename to shellsnake
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwhitaker committed Sep 19, 2022
1 parent 1bc0709 commit 5a715af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ COPY go.mod go.sum ./
RUN go mod download

COPY *.go ./
RUN go build -o /emojisnake
RUN go build -o /shellsnake

FROM alpine:3.16

WORKDIR /

COPY --from=build /emojisnake /emojisnake
COPY --from=build /shellsnake /shellsnake

CMD [ "/emojisnake" ]
CMD [ "/shellsnake" ]
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Emoji Snake
# shellsnake

A simply snake game written using [Bubbletea - a powerful little TUI framework](https://github.com/charmbracelet/bubbletea).
Play snake in your shell!

<img src="https://user-images.githubusercontent.com/116432/184492979-b12266d5-6b8b-475a-84be-8e47f9f3ccde.gif" width="410" alt="A GIF showing a game of emojisnake in progress" />
<img src="https://user-images.githubusercontent.com/116432/184492979-b12266d5-6b8b-475a-84be-8e47f9f3ccde.gif" width="410" alt="A GIF showing a game of shellsnake in progress" />

# To play

Expand All @@ -17,18 +17,18 @@ go run .
## Install the binary

```sh
go install github.com/simonwhitaker/emojisnake@latest
go install github.com/simonwhitaker/shellsnake@latest
```

Then (assuming `$(go env GOPATH)/bin` is in your path):

```sh
emojisnake
shellsnake
```

# Running with Docker

```sh
docker build -t emojisnake .
docker run --rm -it emojisnake:latest
docker build -t shellsnake .
docker run --rm -it shellsnake:latest
```
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func configFilePath() (string, error) {
if err != nil {
return "", err
}
configFile := filepath.Join(userConfigDir, "emojisnake", "config.json")
configFile := filepath.Join(userConfigDir, "shellsnake", "config.json")
return configFile, nil
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/simonwhitaker/emojisnake
module github.com/simonwhitaker/shellsnake

go 1.18

Expand Down

0 comments on commit 5a715af

Please sign in to comment.