Skip to content

Commit 8d130a1

Browse files
committed
feat: change run echo option to dry-run
1 parent 3e01918 commit 8d130a1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎binaries/tasks/src/Commands/TaskRun.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class TaskRun implements CommandModule<{}, TaskRunOptions> {
2525
command = '$0 <name>'
2626

2727
builder: CommandBuilder<{}, TaskRunOptions> = {
28-
echo: {
28+
'dry-run': {
2929
alias: 'd',
3030
default: false,
3131
type: 'boolean',
@@ -54,7 +54,7 @@ export class TaskRun implements CommandModule<{}, TaskRunOptions> {
5454
const entries = task.getStepEntries(args.name)
5555
const env = resolveEnvVariables(args.env)
5656

57-
if (args.echo) {
57+
if (args.dryRun) {
5858
return entries.map(entry => console.log('execute', [entry.name, ...entry.args].join(' ')))
5959
}
6060

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TaskCommandOptions } from './TaskCommandOptions'
22

33
export interface TaskRunOptions extends TaskCommandOptions {
4-
echo: boolean
4+
dryRun: boolean
55
env: string[]
66
name: string
77
}

0 commit comments

Comments
 (0)