From 3f64827389c54179e9ff11cdc7aeb9456f457965 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Wed, 23 Aug 2023 05:08:46 +0000 Subject: [PATCH] add `run` subcommand --- README.md | 2 +- main.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9e1715..5b4cd0e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ dagger run fluentci . # Run the pipeline fluentci --help Usage: fluentci [jobs...] -Version: 0.4.8 +Version: 0.4.9 Description: diff --git a/main.ts b/main.ts index fe20c92..6d7edf0 100644 --- a/main.ts +++ b/main.ts @@ -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( ` . @@ -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]) { + run(pipeline || ".", jobs, options.reload); + }) + .command("run", "Run a pipeline") .arguments(" [jobs...:string]") .option("-r, --reload", "Reload pipeline source cache") .action(function (options, pipeline, ...jobs: [string, ...Array]) {