Skip to content

Commit ba09f4f

Browse files
committed
Remove Game of Life
1 parent ac96c68 commit ba09f4f

5 files changed

Lines changed: 1 addition & 207 deletions

File tree

‎flags_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func TestParseFlags(t *testing.T) {
4747
{name: "version", argv: []string{"--version"}, action: actionVersion},
4848
{name: "themes", argv: []string{"--themes"}, action: actionThemes},
4949
{name: "export themes", argv: []string{"--export-themes"}, action: actionExportThemes},
50-
{name: "game of life", argv: []string{"--game-of-life"}, action: actionGameOfLife},
5150
{name: "dungeon", argv: []string{"--dungeon"}, action: actionDungeon},
5251
}
5352
for _, tt := range tests {

‎help.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func usage() string {
3636
%v --strict strict mode
3737
--no-inline disable inlining in output
3838
--no-tui print output instead of the viewer
39-
--game-of-life play the game of life
39+
--dungeon play the dungeon
4040
4141
%v
4242
https://fx.wtf

‎internal/utils/life.go‎

Lines changed: 0 additions & 199 deletions
This file was deleted.

‎main.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ func main() {
112112
case actionExportThemes:
113113
theme.ExportThemes()
114114
return
115-
case actionGameOfLife:
116-
utils.GameOfLife()
117-
return
118115
case actionDungeon:
119116
if err := dungeon.Run(); err != nil {
120117
fmt.Fprintln(os.Stderr, "Error:", err)

‎utils.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const (
4949
actionVersion
5050
actionThemes
5151
actionExportThemes
52-
actionGameOfLife
5352
actionDungeon
5453
)
5554

@@ -78,8 +77,6 @@ func parseFlags(argv []string) (args []string, act action, err error) {
7877
return nil, actionThemes, nil
7978
case "--export-themes":
8079
return nil, actionExportThemes, nil
81-
case "--game-of-life":
82-
return nil, actionGameOfLife, nil
8380
case "--dungeon":
8481
return nil, actionDungeon, nil
8582
case "--raw", "-r":

0 commit comments

Comments
 (0)