Skip to content

Commit 842eb5d

Browse files
committed
fix(cli): fix CLI CalmHub options for calm validate
1 parent 9673c27 commit 842eb5d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

cli/src/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ export function setupCLI(program: Command) {
8282
verbose: !!options.verbose,
8383
strict: options.strict,
8484
outputFormat: options.format,
85-
outputPath: options.output
85+
outputPath: options.output,
86+
calmHubUrl: options.calmHubUrl,
87+
calmHubPlugin: options.calmHubPlugin
8688
});
8789
});
8890

cli/src/command-helpers/validate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export interface ValidateOptions {
1717
strict: boolean;
1818
outputFormat: ValidateOutputFormat;
1919
outputPath: string;
20+
calmHubUrl?: string;
21+
calmHubPlugin?: string;
2022
}
2123

2224
export async function runValidate(options: ValidateOptions) {

shared/src/document-loader/calmhub-custom-document-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class CalmHubCustomDocumentLoader implements DocumentLoader {
2727
}
2828
const path = url.pathname;
2929

30-
this.logger.debug(`Loading CALM from ${this.calmHubUrl}${path}`);
30+
this.logger.info(`Loading CALM from ${this.calmHubUrl}${path}`);
3131

3232
try {
3333
const response = execFileSync(this.wrapper, ['--method', 'GET', this.baseURL + path], {

0 commit comments

Comments
 (0)