@featurevisor/cli
Advanced tools
Comparing version 1.21.0 to 1.22.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.22.0](https://github.com/featurevisor/featurevisor/compare/v1.21.0...v1.22.0) (2024-05-21) | ||
### Features | ||
* show project info in CLI ([#304](https://github.com/featurevisor/featurevisor/issues/304)) ([d94cb87](https://github.com/featurevisor/featurevisor/commit/d94cb878f24fc4f2280c6126ab40a70aa6bebe9f)) | ||
# [1.21.0](https://github.com/featurevisor/featurevisor/compare/v1.20.0...v1.21.0) (2024-05-09) | ||
@@ -8,0 +19,0 @@ |
@@ -554,2 +554,33 @@ "use strict"; | ||
/** | ||
* Info | ||
*/ | ||
.command({ | ||
command: "info", | ||
handler: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var deps, e_9; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, getDependencies(options)]; | ||
case 1: | ||
deps = _a.sent(); | ||
_a.label = 2; | ||
case 2: | ||
_a.trys.push([2, 4, , 5]); | ||
return [4 /*yield*/, (0, core_1.showProjectInfo)(deps)]; | ||
case 3: | ||
_a.sent(); | ||
return [3 /*break*/, 5]; | ||
case 4: | ||
e_9 = _a.sent(); | ||
console.error(e_9.message); | ||
process.exit(1); | ||
return [3 /*break*/, 5]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}, | ||
}) | ||
/** | ||
* Options | ||
@@ -556,0 +587,0 @@ */ |
{ | ||
"name": "@featurevisor/cli", | ||
"version": "1.21.0", | ||
"version": "1.22.0", | ||
"description": "CLI package of Featurevisor", | ||
@@ -50,3 +50,3 @@ "main": "bin.js", | ||
"dependencies": { | ||
"@featurevisor/core": "^1.21.0", | ||
"@featurevisor/core": "^1.22.0", | ||
"yargs": "^17.6.2" | ||
@@ -57,3 +57,3 @@ }, | ||
}, | ||
"gitHead": "b12c838af9f5361f15b52bf52ef16c058e93b56c" | ||
"gitHead": "28dfe5e2ff046e4a715877e97785d4911dd822fb" | ||
} |
@@ -27,2 +27,3 @@ import * as fs from "fs"; | ||
assessDistribution, | ||
showProjectInfo, | ||
} from "@featurevisor/core"; | ||
@@ -419,2 +420,19 @@ | ||
/** | ||
* Info | ||
*/ | ||
.command({ | ||
command: "info", | ||
handler: async function (options) { | ||
const deps = await getDependencies(options); | ||
try { | ||
await showProjectInfo(deps); | ||
} catch (e) { | ||
console.error(e.message); | ||
process.exit(1); | ||
} | ||
}, | ||
}) | ||
/** | ||
* Options | ||
@@ -421,0 +439,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
89196
1017
+ Added@featurevisor/core@1.31.0(transitive)
+ Added@featurevisor/sdk@1.31.0(transitive)
+ Added@featurevisor/site@1.31.0(transitive)
+ Added@featurevisor/types@1.31.0(transitive)
+ Addedzod@3.24.2(transitive)
- Removed@featurevisor/core@1.30.1(transitive)
- Removed@featurevisor/sdk@1.30.1(transitive)
- Removed@featurevisor/site@1.29.2(transitive)
- Removed@featurevisor/types@1.29.2(transitive)
- Removedzod@3.24.1(transitive)
Updated@featurevisor/core@^1.22.0