Skip to content

Commit 47fc340

Browse files
author
daria-z
committed
rename brain-calculation to brain-calc
1 parent 62181c1 commit 47fc340

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ brain-games:
1313
brain-even:
1414
node bin/brain-even.js
1515

16-
brain-calculator:
17-
node bin/brain-calculator.js
16+
brain-calc:
17+
node bin/brain-calc.js
1818

1919
brain-progression:
2020
node bin/brain-progression.js

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To get started, follow these steps:
3939
- **`make brain-even`**
4040
[![asciicast](https://asciinema.org/a/5GjH4pyYKYdYAVe1PHjN32RS8.svg)](https://asciinema.org/a/5GjH4pyYKYdYAVe1PHjN32RS8)
4141

42-
- **`make brain-calculator`**
42+
- **`make brain-calc`**
4343
[![asciicast](https://asciinema.org/a/ltJ1hPhVnQJ4o8p6JR1A2zEYH.svg)](https://asciinema.org/a/ltJ1hPhVnQJ4o8p6JR1A2zEYH)
4444

4545
- **`make brain-progression`**

bin/brain-calc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env node
2+
import { calc } from '../src/cli.js';
3+
4+
calc();

bin/brain-calculator.js

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

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import userGreeting from './games/userGreeting.js';
22
import even from './games/brain-even.js';
3-
import calculator from './games/brain-calculator.js';
3+
import calc from './games/brain-calc.js';
44
import gcd from './games/brain-gcd.js';
55
import progression from './games/brain-progression.js';
66
import prime from './games/brain-prime.js';
77

88
export {
9-
userGreeting, even, calculator, gcd, progression, prime,
9+
userGreeting, even, calc, gcd, progression, prime,
1010
};

src/games/brain-calculator.js renamed to src/games/brain-calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import gamesWrapper from './utils/gamesWrapper.js';
2-
import { rule, logic } from './games-logic/calculator.js';
2+
import { rule, logic } from './games-logic/calc.js';
33

44
export default () => {
55
gamesWrapper(rule, logic);
File renamed without changes.

0 commit comments

Comments
 (0)