@speedkit/cli 3.34.0 → 3.36.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,17 @@
1
+ # [3.36.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.35.0...v3.36.0) (2026-03-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **build-parameter-query:** quiet flag ([f668a76](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/f668a76298e971a2e7eebdd8e1b305c18fa39fdc))
7
+
8
+ # [3.35.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.34.0...v3.35.0) (2026-03-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * **build-parameter-query:** quiet flag ([080a49f](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/080a49f26ae3248ba3c9d4d994c893293033a3dc))
14
+
1
15
  # [3.34.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.33.0...v3.34.0) (2026-03-27)
2
16
 
3
17
 
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/3.34.0 linux-x64 node-v20.20.2
24
+ @speedkit/cli/3.36.0 linux-x64 node-v20.20.2
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -143,13 +143,14 @@ Build a prewarm query that can be executed in Athena
143
143
 
144
144
  ```
145
145
  USAGE
146
- $ sk build-prewarm-query CUSTOMERPATH [-c <value>]
146
+ $ sk build-prewarm-query CUSTOMERPATH [-c <value>] [-q]
147
147
 
148
148
  ARGUMENTS
149
149
  CUSTOMERPATH The customer config path
150
150
 
151
151
  FLAGS
152
152
  -c, --configName=<value> [default: production] The costumer config name
153
+ -q, --quiet Output only the raw query without clipboard copy or styling
153
154
 
154
155
  DESCRIPTION
155
156
  Build a prewarm query that can be executed in Athena
@@ -8,6 +8,7 @@ export default class BuildPrewarmQuery extends Command {
8
8
  static description: string;
9
9
  static examples: string[];
10
10
  static flags: {
11
+ quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
12
  configName: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
12
13
  };
13
14
  run(): Promise<void>;
@@ -14,13 +14,19 @@ class BuildPrewarmQuery extends core_1.Command {
14
14
  ];
15
15
  static flags = {
16
16
  ...cli_parameters_1.CLI_CONFIG_NAME,
17
+ quiet: core_1.Flags.boolean({
18
+ char: "q",
19
+ description: "Output only the raw query without clipboard copy or styling",
20
+ default: false,
21
+ }),
17
22
  };
18
23
  async run() {
19
- const { args: { customerPath }, flags: { configName }, } = await this.parse(BuildPrewarmQuery);
24
+ const { args: { customerPath }, flags: { configName, quiet }, } = await this.parse(BuildPrewarmQuery);
20
25
  const service = await new query_builder_factory_1.QueryBuilderFactory({
21
26
  configName,
22
27
  customerPath,
23
28
  isWindows: this.config.windows,
29
+ quiet,
24
30
  }, new cli_config_1.CliConfig(this.config).load()).buildService(query_builder_model_1.QueryTpe.prewarm);
25
31
  await service.run();
26
32
  }
@@ -25,6 +25,7 @@ class QueryBuilderFactory {
25
25
  app,
26
26
  queryType,
27
27
  isWindows: this.context.isWindows,
28
+ quiet: this.context.quiet,
28
29
  };
29
30
  return new query_builder_service_1.QueryBuilderService(serviceContext, speedKitConfig, cli);
30
31
  }
@@ -1,5 +1,6 @@
1
1
  export type QueryBuilderContext = {
2
2
  isWindows?: boolean;
3
+ quiet?: boolean;
3
4
  queryType: QueryTpe;
4
5
  app: string;
5
6
  };
@@ -7,6 +8,7 @@ export type QueryBuilderFactoryContext = {
7
8
  readonly customerPath: string;
8
9
  readonly configName: string;
9
10
  readonly isWindows?: boolean;
11
+ readonly quiet?: boolean;
10
12
  };
11
13
  export declare enum QueryTpe {
12
14
  prewarm = "prewarm",
@@ -28,6 +28,10 @@ class QueryBuilderService {
28
28
  const parameterFilter = (0, build_query_helper_1.getParameterFilter)(parameters, skConfigVersion);
29
29
  const result = this.buildQuery(this.context.app, parameterFilter, whitelistedFilter, blacklistedFilter, parameterReplaceFilter);
30
30
  this.cli.endAction(cli_1.CliActionStatus.COMPLETED);
31
+ if (this.context.quiet) {
32
+ process.stdout.write(result);
33
+ return;
34
+ }
31
35
  if (!this.context.isWindows) {
32
36
  clipboardy_cjs_1.default.writeSync(result);
33
37
  }
@@ -65,6 +65,13 @@
65
65
  "hasDynamicHelp": false,
66
66
  "multiple": false,
67
67
  "type": "option"
68
+ },
69
+ "quiet": {
70
+ "char": "q",
71
+ "description": "Output only the raw query without clipboard copy or styling",
72
+ "name": "quiet",
73
+ "allowNo": false,
74
+ "type": "boolean"
68
75
  }
69
76
  },
70
77
  "hasDynamicHelp": false,
@@ -738,5 +745,5 @@
738
745
  ]
739
746
  }
740
747
  },
741
- "version": "3.34.0"
748
+ "version": "3.36.0"
742
749
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.34.0",
4
+ "version": "3.36.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"