@akanjs/cli 0.0.4
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 +11 -0
- package/index.js +22 -0
- package/package.json +24 -0
package/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var import_commander = require("commander");
|
|
3
|
+
var import_common = require("pkgs/@akanjs/common");
|
|
4
|
+
import_commander.program.version("0.0.1").description("An example CLI for managing a directory");
|
|
5
|
+
import_commander.program.command("application").argument("<name>", "application name").action((name, options, command) => {
|
|
6
|
+
});
|
|
7
|
+
import_commander.program.command("library").argument("<name>", "library name").action((name, options, command) => {
|
|
8
|
+
});
|
|
9
|
+
import_commander.program.command("package").argument("<name>", "package name").action((name, options, command) => {
|
|
10
|
+
});
|
|
11
|
+
import_commander.program.command("workspace").argument("<name>", "workspace name").action((name, options, command) => {
|
|
12
|
+
});
|
|
13
|
+
import_commander.program.command("login").action((options, command) => {
|
|
14
|
+
import_common.Logger.log("login");
|
|
15
|
+
});
|
|
16
|
+
import_commander.program.command("logout").action((options, command) => {
|
|
17
|
+
import_common.Logger.log("logout");
|
|
18
|
+
});
|
|
19
|
+
const run = async () => {
|
|
20
|
+
await import_commander.program.parseAsync(process.argv);
|
|
21
|
+
};
|
|
22
|
+
void run();
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "commonjs",
|
|
3
|
+
"name": "@akanjs/cli",
|
|
4
|
+
"version": "0.0.4",
|
|
5
|
+
"bin": {
|
|
6
|
+
"akan": "index.js"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/akan-team/akanjs.git",
|
|
14
|
+
"directory": "pkgs/@akanjs/cli"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@urql/core": "5.1.0",
|
|
18
|
+
"commander": "13.1.0",
|
|
19
|
+
"dayjs": "1.11.13",
|
|
20
|
+
"pluralize": "8.0.0",
|
|
21
|
+
"tunnel-ssh": "5.2.0"
|
|
22
|
+
},
|
|
23
|
+
"main": "./index.js"
|
|
24
|
+
}
|