@stackbilt/cli 0.1.4 → 0.1.5
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,6 +15,8 @@ const validate_1 = require("./commands/validate");
|
|
|
15
15
|
const audit_1 = require("./commands/audit");
|
|
16
16
|
const drift_1 = require("./commands/drift");
|
|
17
17
|
const classify_1 = require("./commands/classify");
|
|
18
|
+
const package_json_1 = require("../package.json");
|
|
19
|
+
const CLI_VERSION = package_json_1.version;
|
|
18
20
|
const HELP = `
|
|
19
21
|
charter - repo-level governance toolkit
|
|
20
22
|
|
|
@@ -55,7 +57,7 @@ async function run(args) {
|
|
|
55
57
|
return exports.EXIT_CODE.SUCCESS;
|
|
56
58
|
}
|
|
57
59
|
if (args.includes('--version') || args.includes('-v')) {
|
|
58
|
-
console.log(
|
|
60
|
+
console.log(`charter v${CLI_VERSION}`);
|
|
59
61
|
return exports.EXIT_CODE.SUCCESS;
|
|
60
62
|
}
|
|
61
63
|
const command = args[0];
|
|
@@ -96,4 +98,4 @@ function getFlag(args, flag) {
|
|
|
96
98
|
}
|
|
97
99
|
return undefined;
|
|
98
100
|
}
|
|
99
|
-
//# sourceMappingURL=index.js.map
|
|
101
|
+
//# sourceMappingURL=index.js.map
|