@speedkit/cli 3.34.0 → 3.35.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
+ # [3.35.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.34.0...v3.35.0) (2026-03-27)
2
+
3
+
4
+ ### Features
5
+
6
+ * **build-parameter-query:** quiet flag ([080a49f](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/080a49f26ae3248ba3c9d4d994c893293033a3dc))
7
+
1
8
  # [3.34.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.33.0...v3.34.0) (2026-03-27)
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/3.34.0 linux-x64 node-v20.20.2
24
+ @speedkit/cli/3.35.0 linux-x64 node-v20.20.2
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -120,13 +120,14 @@ Build a parameter query that can be executed in Athena
120
120
 
121
121
  ```
122
122
  USAGE
123
- $ sk build-parameter-query CUSTOMERPATH [-c <value>]
123
+ $ sk build-parameter-query CUSTOMERPATH [-c <value>] [-q]
124
124
 
125
125
  ARGUMENTS
126
126
  CUSTOMERPATH The customer config path
127
127
 
128
128
  FLAGS
129
129
  -c, --configName=<value> [default: production] The costumer config name
130
+ -q, --quiet Output only the raw query without clipboard copy or styling
130
131
 
131
132
  DESCRIPTION
132
133
  Build a parameter query that can be executed in Athena
@@ -8,6 +8,7 @@ export default class BuildParameterQuery 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 BuildParameterQuery 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(BuildParameterQuery);
24
+ const { args: { customerPath }, flags: { configName, quiet }, } = await this.parse(BuildParameterQuery);
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.parameter);
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
  }
@@ -24,6 +24,13 @@
24
24
  "hasDynamicHelp": false,
25
25
  "multiple": false,
26
26
  "type": "option"
27
+ },
28
+ "quiet": {
29
+ "char": "q",
30
+ "description": "Output only the raw query without clipboard copy or styling",
31
+ "name": "quiet",
32
+ "allowNo": false,
33
+ "type": "boolean"
27
34
  }
28
35
  },
29
36
  "hasDynamicHelp": false,
@@ -738,5 +745,5 @@
738
745
  ]
739
746
  }
740
747
  },
741
- "version": "3.34.0"
748
+ "version": "3.35.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.35.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"