@vention/vention-cli 0.2.0

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 ADDED
@@ -0,0 +1,39 @@
1
+ # @vention/vention-cli
2
+
3
+ A command-line interface tool to interact with MachineCode applications from your local setup
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Install from npm
9
+ npm install -g @vention/vention-cli
10
+
11
+ # Or install locally for development
12
+ nx build vention-cli
13
+ cd dist/projects/machine-code/apps/vention-cli
14
+ npm link
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ After installation, you can use either `vention` or `vn` as the command:
20
+
21
+ ```bash
22
+ # Show help
23
+ vention --help
24
+ # or
25
+ vn --help
26
+
27
+ # Run the hello command
28
+ vention hello
29
+ # or
30
+ vn hello
31
+
32
+ # Show version
33
+ vention --version
34
+ # or
35
+ vn --version
36
+ ```
37
+
38
+ Both commands (`vention` and `vn`) do exactly the same thing - use whichever you prefer!
39
+
package/index.cjs.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/index.cjs.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ var commander = require('commander');
5
+ var chalk = require('chalk');
6
+
7
+ const program = new commander.Command();
8
+ program.name("vention").description("CLI tool for Vention").version("0.1.0");
9
+ program
10
+ .command("hello")
11
+ .description("Say hello")
12
+ .action(() => {
13
+ console.log(chalk.green("Hello from Machine Logic CLI!"));
14
+ });
15
+ if (require.main === module) {
16
+ program.parse(process.argv);
17
+ }
18
+
19
+ exports.program = program;
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@vention/vention-cli",
3
+ "version": "0.2.0",
4
+ "description": "CLI tool for Vention applications",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/VentionCo/machine-cloud.git"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
12
+ },
13
+ "license": "MIT",
14
+ "bin": {
15
+ "vention": "index.cjs.js",
16
+ "vn": "index.cjs.js"
17
+ },
18
+ "dependencies": {
19
+ "commander": "11.1.0",
20
+ "chalk": "4.1.2"
21
+ },
22
+ "peerDependencies": {},
23
+ "devDependencies": {
24
+ "@nx/vite": "21.1.3",
25
+ "@types/node": "20.11.24",
26
+ "typescript": "5.3.3",
27
+ "vitest": "3.2.3"
28
+ },
29
+ "main": "./index.cjs.js",
30
+ "type": "commonjs",
31
+ "types": "./index.cjs.d.ts"
32
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export declare const program: import("commander").Command;
@@ -0,0 +1 @@
1
+ export {};