@whop/cli 0.0.1 → 0.0.2
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/README.md +9 -1
- package/bin/whop.js +31 -1
- package/package.json +12 -4
package/README.md
CHANGED
package/bin/whop.js
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const { version } = require("../package.json");
|
|
4
|
+
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
const firstArg = args[0];
|
|
7
|
+
|
|
8
|
+
if (firstArg === "--version" || firstArg === "-v") {
|
|
9
|
+
console.log(version);
|
|
10
|
+
process.exit(0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (!firstArg || firstArg === "--help" || firstArg === "-h") {
|
|
14
|
+
console.log(`Whop CLI is coming soon.
|
|
15
|
+
|
|
16
|
+
For now, create a Whop app with:
|
|
17
|
+
|
|
18
|
+
pnpm create whop-app
|
|
19
|
+
|
|
20
|
+
Docs: https://docs.whop.com`);
|
|
21
|
+
process.exit(0);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
console.error(`Unknown command: ${firstArg}
|
|
25
|
+
|
|
26
|
+
Whop CLI is coming soon.
|
|
27
|
+
|
|
28
|
+
For now, create a Whop app with:
|
|
29
|
+
|
|
30
|
+
pnpm create whop-app
|
|
31
|
+
|
|
32
|
+
Docs: https://docs.whop.com`);
|
|
33
|
+
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whop/cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Official Whop CLI
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Official Whop CLI",
|
|
5
5
|
"main": "./bin/whop.js",
|
|
6
|
-
"keywords": [
|
|
7
|
-
|
|
6
|
+
"keywords": [
|
|
7
|
+
"whop",
|
|
8
|
+
"cli",
|
|
9
|
+
"developer-tools"
|
|
10
|
+
],
|
|
11
|
+
"author": "Whop",
|
|
8
12
|
"license": "MIT",
|
|
9
13
|
"type": "commonjs",
|
|
14
|
+
"homepage": "https://docs.whop.com",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/whopio/whop-monorepo/issues"
|
|
17
|
+
},
|
|
10
18
|
"publishConfig": {
|
|
11
19
|
"access": "public"
|
|
12
20
|
},
|