@featurevisor/cli
Advanced tools
Comparing version 0.35.0 to 0.36.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.36.0](https://github.com/fahad19/featurevisor/compare/v0.35.0...v0.36.0) (2023-07-13) | ||
### Features | ||
* restore state files ([#100](https://github.com/fahad19/featurevisor/issues/100)) ([796695d](https://github.com/fahad19/featurevisor/commit/796695d0f645869ec305c3446282fba7e45e2bb5)) | ||
# [0.35.0](https://github.com/fahad19/featurevisor/compare/v0.34.0...v0.35.0) (2023-07-13) | ||
@@ -8,0 +19,0 @@ |
@@ -126,2 +126,16 @@ "use strict"; | ||
.command({ | ||
command: "restore", | ||
handler: function (options) { | ||
var projectConfig = requireAndGetProjectConfig(rootDirectoryPath); | ||
try { | ||
(0, core_1.restoreProject)(rootDirectoryPath, projectConfig); | ||
} | ||
catch (e) { | ||
console.error(e.message); | ||
process.exit(1); | ||
} | ||
}, | ||
}) | ||
.example("$0 restore", "restore state files") | ||
.command({ | ||
command: "test", | ||
@@ -128,0 +142,0 @@ handler: function (options) { |
{ | ||
"name": "@featurevisor/cli", | ||
"version": "0.35.0", | ||
"version": "0.36.0", | ||
"description": "CLI package of Featurevisor", | ||
@@ -47,3 +47,3 @@ "main": "bin.js", | ||
"dependencies": { | ||
"@featurevisor/core": "^0.35.0", | ||
"@featurevisor/core": "^0.36.0", | ||
"yargs": "^17.6.2" | ||
@@ -54,3 +54,3 @@ }, | ||
}, | ||
"gitHead": "1c8bb99f1dce49b87a95c7e1903bc0308fc7db4d" | ||
"gitHead": "a8591d17d227b56f93cb59d13de7fce4d20b2890" | ||
} |
@@ -18,2 +18,3 @@ import * as fs from "fs"; | ||
GenerateCodeCLIOptions, | ||
restoreProject, | ||
} from "@featurevisor/core"; | ||
@@ -94,2 +95,17 @@ | ||
.command({ | ||
command: "restore", | ||
handler: function (options) { | ||
const projectConfig = requireAndGetProjectConfig(rootDirectoryPath); | ||
try { | ||
restoreProject(rootDirectoryPath, projectConfig); | ||
} catch (e) { | ||
console.error(e.message); | ||
process.exit(1); | ||
} | ||
}, | ||
}) | ||
.example("$0 restore", "restore state files") | ||
.command({ | ||
command: "test", | ||
@@ -96,0 +112,0 @@ handler: function (options) { |
Sorry, the diff of this file is not supported yet
31793
386
+ Added@featurevisor/core@0.36.0(transitive)
+ Added@featurevisor/sdk@0.36.0(transitive)
+ Added@featurevisor/site@0.36.0(transitive)
+ Added@featurevisor/types@0.36.0(transitive)
- Removed@featurevisor/core@0.35.0(transitive)
- Removed@featurevisor/sdk@0.35.0(transitive)
- Removed@featurevisor/site@0.35.0(transitive)
- Removed@featurevisor/types@0.35.0(transitive)
Updated@featurevisor/core@^0.36.0