From 637aa90868f82044b68fefaa795de69109659908 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 8 Nov 2023 03:13:09 +0000 Subject: [PATCH 1/2] fix: resolve issue on sending arguments to pipeline --- src/cmd/run.ts | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/cmd/run.ts b/src/cmd/run.ts index dcef19b..9e6cf30 100644 --- a/src/cmd/run.ts +++ b/src/cmd/run.ts @@ -37,10 +37,9 @@ async function run( "--import-map=.fluentci/import_map.json", ".fluentci/src/dagger/runner.ts", ...jobs, - Object.keys(options) + ...Object.keys(options) .filter((key) => key !== "reload") - .map((key) => `--${key} ${options[key]}`) - .join(" "), + .map((key) => `--${key}=${options[key]}`), ], stdout: "inherit", stderr: "inherit", @@ -59,10 +58,9 @@ async function run( "--import-map=.fluentci/import_map.json", ".fluentci/src/dagger/runner.ts", ...jobs, - Object.keys(options) + ...Object.keys(options) .filter((key) => key !== "reload") - .map((key) => `--${key} ${options[key]}`) - .join(" "), + .map((key) => `--${key}=${options[key]}`), ], stdout: "inherit", stderr: "inherit", @@ -84,10 +82,9 @@ async function run( "run", "-A", `.fluentci/${job}.ts`, - Object.keys(options) + ...Object.keys(options) .filter((key) => key !== "reload") - .map((key) => `--${key} ${options[key]}`) - .join(" "), + .map((key) => `--${key}=${options[key]}`), ], stdout: "inherit", stderr: "inherit", @@ -107,9 +104,9 @@ async function run( "run", "-A", `.fluentci/${job}.ts`, - Object.keys(options) + ...Object.keys(options) .filter((key) => key !== "reload") - .map((key) => `--${key} ${options[key]}`) + .map((key) => `--${key}=${options[key]}`) .join(" "), ], stdout: "inherit", @@ -144,10 +141,9 @@ async function run( `--import-map=https://pkg.fluentci.io/${pipeline}@${data.version}/import_map.json`, `https://pkg.fluentci.io/${pipeline}@${data.version}/src/dagger/runner.ts`, ...jobs, - Object.keys(options) + ...Object.keys(options) .filter((key) => key !== "reload") - .map((key) => `--${key} ${options[key]}`) - .join(" "), + .map((key) => `--${key}=${options[key]}`), ]; if (options.reload) { From 0902b7e6e33a9cb9169780da130b72422f28b56c Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 8 Nov 2023 03:14:00 +0000 Subject: [PATCH 2/2] bump version code --- README.md | 2 +- main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 359f90d..809c418 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ fluentci # Run the pipeline fluentci --help Usage: fluentci [pipeline] [jobs...] -Version: 0.7.0 +Version: 0.7.1 Description: diff --git a/main.ts b/main.ts index e725eb2..9efcda4 100644 --- a/main.ts +++ b/main.ts @@ -16,7 +16,7 @@ import doctor from "./src/cmd/doctor.ts"; export async function main() { await new Command() .name("fluentci") - .version("0.7.0") + .version("0.7.1") .description( ` .