@speedkit/cli 3.33.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 +14 -0
- package/README.md +3 -2
- package/dist/commands/build-parameter-query.d.ts +1 -0
- package/dist/commands/build-parameter-query.js +7 -1
- package/dist/services/onboarding/config-renderer/speed-kit-install-context.js +1 -0
- package/dist/services/query-builder/query-builder-factory.js +1 -0
- package/dist/services/query-builder/query-builder-model.d.ts +2 -0
- package/dist/services/query-builder/query-builder-service.js +4 -0
- package/oclif.manifest.json +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
# [3.34.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.33.0...v3.34.0) (2026-03-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* implement bundling for speed-kit-config-plugins ([7d80ec3](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/7d80ec34ca232551204d7761a418e8ba90de46ad))
|
|
14
|
+
|
|
1
15
|
# [3.33.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.32.1...v3.33.0) (2026-03-25)
|
|
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.
|
|
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
|
}
|
|
@@ -5,6 +5,7 @@ const files_1 = require("../../../models/files");
|
|
|
5
5
|
const IMPORT_PATHS = {
|
|
6
6
|
rum: "https://www.baqend.com/rum/latest/",
|
|
7
7
|
"speed-kit": "https://www.baqend.com/speed-kit/latest/",
|
|
8
|
+
"speed-kit-config": "https://www.baqend.com/speed-kit-config/latest/",
|
|
8
9
|
"predictive-preloading": "https://www.baqend.com/speed-kit-predictive-preloading/latest/",
|
|
9
10
|
};
|
|
10
11
|
class SpeedKitInstallContext {
|
|
@@ -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
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -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.
|
|
748
|
+
"version": "3.35.0"
|
|
742
749
|
}
|