Skip to content

Commit

Permalink
Merge pull request #26 from fluent-ci-templates/fluentci-run
Browse files Browse the repository at this point in the history
add `run` subcommand
  • Loading branch information
tsirysndr authored Aug 23, 2023
2 parents ff795c5 + 3f64827 commit c83a679
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dagger run fluentci . # Run the pipeline
fluentci --help

Usage: fluentci <pipeline> [jobs...]
Version: 0.4.8
Version: 0.4.9

Description:

Expand Down
8 changes: 7 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import docs from "./docs.ts";
export async function main() {
await new Command()
.name("fluentci")
.version("0.4.8")
.version("0.4.9")
.description(
`
.
Expand All @@ -27,6 +27,12 @@ export async function main() {
`
)
.arguments("[pipeline:string] [jobs...:string]")
.option("-r, --reload", "Reload pipeline source cache")
.action(function (options, pipeline, ...jobs: [string, ...Array<string>]) {
run(pipeline || ".", jobs, options.reload);
})
.command("run", "Run a pipeline")
.arguments("<pipeline:string> [jobs...:string]")
.option("-r, --reload", "Reload pipeline source cache")
.action(function (options, pipeline, ...jobs: [string, ...Array<string>]) {
Expand Down

0 comments on commit c83a679

Please sign in to comment.