File tree 4 files changed +31
-14
lines changed
4 files changed +31
-14
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ bower_components
54
54
55
55
build /Release
56
56
57
+
58
+
57
59
# Dependency directories
58
60
59
61
node_modules /
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env bun
2
2
3
- import { generateColoredAsciiArt } from "./src/asciiArt" ;
4
- import BooleanTable from "./src/booleanTable" ;
5
- import CLI from "./src/CLI" ;
3
+ import { runTool } from "./src" ;
6
4
7
- if ( process . argv . length < 3 || process . argv . length > 4 ) {
8
- generateColoredAsciiArt ( "BOOLEAN-TABLE" , "A simple Boolean Table Generator" ) ;
9
- CLI . displayHelp ( ) ;
10
- } else {
11
- const expression = CLI . getExpression ( process ) ;
12
-
13
- if ( expression ) {
14
- const booleanTable = new BooleanTable ( expression ) ;
15
- booleanTable . generateTable ( ) ;
16
- }
17
- }
5
+ runTool ( ) ;
Original file line number Diff line number Diff line change 2
2
"name" : " boolean-table" ,
3
3
"module" : " index.ts" ,
4
4
"type" : " module" ,
5
+ "version" : " 0.1.0" ,
6
+ "license" : " MIT" ,
7
+ "author" : " KiritoEM" ,
8
+ "description" : " A simple Boolean Table Generator with basics operations" ,
9
+ "repository" : " https://github.com/KiritoEM/boolean-table" ,
10
+ "keywords" : [
11
+ " truth-table"
12
+ ],
5
13
"scripts" : {
6
14
"boolean-table" : " link:boolean-table"
7
15
},
Original file line number Diff line number Diff line change
1
+ import { generateColoredAsciiArt } from "./asciiArt" ;
2
+ import BooleanTable from "./booleanTable" ;
3
+ import CLI from "./CLI" ;
4
+
5
+ const runTool = ( ) => {
6
+ if ( process . argv . length < 3 || process . argv . length > 4 ) {
7
+ generateColoredAsciiArt ( "BOOLEAN-TABLE" , "A simple Boolean Table Generator" ) ;
8
+ CLI . displayHelp ( ) ;
9
+ } else {
10
+ const expression = CLI . getExpression ( process ) ;
11
+
12
+ if ( expression ) {
13
+ const booleanTable = new BooleanTable ( expression ) ;
14
+ booleanTable . generateTable ( ) ;
15
+ }
16
+ }
17
+ }
18
+
19
+ export { runTool } ;
You can’t perform that action at this time.
0 commit comments