@speedkit/cli 2.39.0 → 2.40.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.40.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.39.0...v2.40.0) (2024-07-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * **config:** add a command to easily edit cliConfigFile ([0094337](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/00943377f5b9d88d7d8da7c9ed90a88bfc43a6d8))
7
+
1
8
  # [2.39.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.38.0...v2.39.0) (2024-07-05)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/2.39.0 linux-x64 node-v20.15.0
24
+ @speedkit/cli/2.40.0 linux-x64 node-v20.15.0
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -68,6 +68,7 @@ By either...
68
68
  * [`sk autocomplete [SHELL]`](#sk-autocomplete-shell)
69
69
  * [`sk build-parameter-query CUSTOMERPATH`](#sk-build-parameter-query-customerpath)
70
70
  * [`sk build-prewarm-query CUSTOMERPATH`](#sk-build-prewarm-query-customerpath)
71
+ * [`sk config edit`](#sk-config-edit)
71
72
  * [`sk deploy CUSTOMERPATH`](#sk-deploy-customerpath)
72
73
  * [`sk diff-url-parameters PAGEURL`](#sk-diff-url-parameters-pageurl)
73
74
  * [`sk document-handler CUSTOMERPATH`](#sk-document-handler-customerpath)
@@ -159,6 +160,21 @@ EXAMPLES
159
160
  $ sk build-prewarm-query customers/decathlon.de -c production
160
161
  ```
161
162
 
163
+ ## `sk config edit`
164
+
165
+ Edit cli config
166
+
167
+ ```
168
+ USAGE
169
+ $ sk config edit
170
+
171
+ DESCRIPTION
172
+ Edit cli config
173
+
174
+ EXAMPLES
175
+ $ sk config edit
176
+ ```
177
+
162
178
  ## `sk deploy CUSTOMERPATH`
163
179
 
164
180
  Deploys the specified customer config while comparing to the live version before
@@ -0,0 +1,6 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class Edit extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ run(): Promise<void>;
6
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
5
+ const path_1 = tslib_1.__importDefault(require("path"));
6
+ const child_process_1 = require("child_process");
7
+ const dotenv = tslib_1.__importStar(require("dotenv"));
8
+ dotenv.config();
9
+ class Edit extends core_1.Command {
10
+ static description = "Edit cli config";
11
+ static examples = [`$ sk config edit`];
12
+ async run() {
13
+ const editor = process.env.EDITOR || "nano";
14
+ const editorSpawn = (0, child_process_1.spawn)(editor, [path_1.default.resolve(this.config.configDir, "config.json")], {
15
+ stdio: "inherit",
16
+ detached: true,
17
+ });
18
+ editorSpawn.on("data", function (data) {
19
+ process.stdout.pipe(data);
20
+ });
21
+ }
22
+ }
23
+ exports.default = Edit;
@@ -686,7 +686,31 @@
686
686
  "commands",
687
687
  "wpt-launcher.js"
688
688
  ]
689
+ },
690
+ "config:edit": {
691
+ "aliases": [],
692
+ "args": {},
693
+ "description": "Edit cli config",
694
+ "examples": [
695
+ "$ sk config edit"
696
+ ],
697
+ "flags": {},
698
+ "hasDynamicHelp": false,
699
+ "hiddenAliases": [],
700
+ "id": "config:edit",
701
+ "pluginAlias": "@speedkit/cli",
702
+ "pluginName": "@speedkit/cli",
703
+ "pluginType": "core",
704
+ "strict": true,
705
+ "enableJsonFlag": false,
706
+ "isESM": false,
707
+ "relativePath": [
708
+ "dist",
709
+ "commands",
710
+ "config",
711
+ "edit.js"
712
+ ]
689
713
  }
690
714
  },
691
- "version": "2.39.0"
715
+ "version": "2.40.0"
692
716
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "2.39.0",
4
+ "version": "2.40.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"