Skip to content

Commit

Permalink
feat: Add silent mode CLI argument (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored May 29, 2024
1 parent 85bd8ea commit 3b80a0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cliArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ program
'Name of the stage of the pipeline you want to run'
)
.option('--init', 'Initializes a new LDWorkbench project')
.option(
'--silent',
'Disable console output, including the progress indicator.'
)
.version(version());
program.parse();
export const cliArgs: {
config?: string;
configDir?: string;
pipeline?: string;
stage?: string;
silent?: boolean;
init?: boolean;
} = program.opts();

Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ async function main(): Promise<void> {

const pipeline = new Pipeline(configuration, {
startFromStageName: cliArgs.stage,
silent: cliArgs.silent,
});

try {
Expand Down

0 comments on commit 3b80a0a

Please sign in to comment.