flowershow 0.0.5 → 0.0.6
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/bin/flowershow.js +7 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/logger.js +4 -0
- package/package.json +1 -1
package/bin/flowershow.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
const require = createRequire(import.meta.url);
|
|
4
|
+
import { warn, log } from '../lib/utils/index.js';
|
|
4
5
|
|
|
5
|
-
import
|
|
6
|
+
import os from 'os';
|
|
6
7
|
|
|
8
|
+
if (os.platform() === 'win32') {
|
|
9
|
+
warn("This may not work as expected. You're trying to run Flowreshow CLI on Windows, which is not supported yet...");
|
|
10
|
+
}
|
|
7
11
|
|
|
8
12
|
// TODO check current vs required node version (package.json engines)
|
|
9
13
|
// const requiredNodeVersion = require("../package.json").engines.node;
|
|
10
14
|
|
|
15
|
+
import { Command } from "commander";
|
|
16
|
+
|
|
11
17
|
const program = new Command();
|
|
12
18
|
|
|
13
19
|
program
|
package/lib/utils/index.js
CHANGED
package/lib/utils/logger.js
CHANGED