Skip to content

Commit

Permalink
feat(core): support --use-agents and --no-agents (nrwl#21472)
Browse files Browse the repository at this point in the history
  • Loading branch information
StalkAltan authored Jan 31, 2024
1 parent 8d4869d commit 8762c38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/nx/src/command-line/yargs-utils/shared-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface RunOptions {
cloud: boolean;
dte: boolean;
batch: boolean;
useAgents: boolean;
}

export function withRunOptions<T>(yargs: Argv<T>): Argv<T & RunOptions> {
Expand Down Expand Up @@ -90,6 +91,11 @@ export function withRunOptions<T>(yargs: Argv<T>): Argv<T & RunOptions> {
.options('dte', {
type: 'boolean',
hidden: true,
})
.options('useAgents', {
type: 'boolean',
hidden: true,
alias: 'agents',
}) as Argv<Omit<RunOptions, 'exclude' | 'batch'>> as any;
}

Expand Down

0 comments on commit 8762c38

Please sign in to comment.