Skip to content

Commit

Permalink
Merge pull request #4 from fluentci-io/fix/pipeline-args
Browse files Browse the repository at this point in the history
fix: resolve issue on sending arguments to pipeline
  • Loading branch information
tsirysndr authored Nov 8, 2023
2 parents 37b6b1f + 0902b7e commit f9783b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fluentci # Run the pipeline
fluentci --help

Usage: fluentci [pipeline] [jobs...]
Version: 0.7.0
Version: 0.7.1

Description:

Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
`
.
Expand Down
24 changes: 10 additions & 14 deletions src/cmd/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f9783b0

Please sign in to comment.