@sudoji/cli 0.1.6 → 0.1.7
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.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import "./chunk-RWRJASDG.js";
|
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
5
5
|
import { Command as Command7 } from "commander";
|
|
6
|
+
import { createRequire } from "module";
|
|
6
7
|
|
|
7
8
|
// src/commands/login.ts
|
|
8
9
|
import { Command } from "commander";
|
|
@@ -509,7 +510,9 @@ function keysCommand() {
|
|
|
509
510
|
}
|
|
510
511
|
|
|
511
512
|
// src/index.ts
|
|
512
|
-
var
|
|
513
|
+
var require2 = createRequire(import.meta.url);
|
|
514
|
+
var { version } = require2("../package.json");
|
|
515
|
+
var program = new Command7().name("sudoji").description("Sudoji Agent \u2014 AI-powered IT operations for Linux servers").version(version, "--version", "print version and exit");
|
|
513
516
|
program.addCommand(loginCommand());
|
|
514
517
|
program.addCommand(logoutCommand());
|
|
515
518
|
program.addCommand(doctorCommand());
|