@boostd/boost 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  declare const args: string[];
3
- declare const command: string;
4
- declare const asciiOk = "+------------------+\n| |\n| OOOO KK KK |\n| OO OO KK KK |\n| OO OO KKKKK |\n| OO OO KK KK |\n| OOOO KK KK |\n| |\n+------------------+";
3
+ declare const cmd: string;
4
+ declare function banner(): void;
5
+ declare function help(): void;
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  const args = process.argv.slice(2);
4
- const [command] = args;
5
- const asciiOk = `+------------------+
4
+ const cmd = args[0];
5
+ function banner() {
6
+ console.log(`+------------------+
6
7
  | |
7
8
  | OOOO KK KK |
8
9
  | OO OO KK KK |
@@ -10,12 +11,27 @@ const asciiOk = `+------------------+
10
11
  | OO OO KK KK |
11
12
  | OOOO KK KK |
12
13
  | |
13
- +------------------+`;
14
- if (!command || command === "up") {
15
- console.log(asciiOk);
14
+ +------------------+`);
16
15
  }
17
- else {
18
- console.log("oh no");
19
- process.exitCode = 1;
16
+ function help() {
17
+ console.log(`boost
18
+
19
+ Commands:
20
+ boost up reports back ok
21
+
22
+ Examples:
23
+ boost up
24
+ `);
20
25
  }
26
+ if (!cmd || cmd === "help" || cmd === "-h" || cmd === "--help") {
27
+ help();
28
+ process.exit(0);
29
+ }
30
+ if (cmd === "up") {
31
+ banner();
32
+ process.exit(0);
33
+ }
34
+ console.error(`Unknown command: ${cmd}\n`);
35
+ help();
36
+ process.exit(1);
21
37
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa,OAAO,CAAC,IAAI,CAAC,KAAK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ostd/boost",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Placeholder CLI for boost",
5
5
  "engines": {
6
6
  "node": ">=18"