mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix(cli): deno task
exit with status 0 (#25637)
Fixes https://github.com/denoland/deno/issues/25632 Exit code 1 indiciates some sort of failure but `deno task` (without arguments) is used to list available commands. --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
parent
db6fc12b9e
commit
a666c8c9f9
7 changed files with 10 additions and 10 deletions
|
@ -75,7 +75,7 @@ See https://docs.deno.com/go/config"#
|
|||
&cli_options.start_dir,
|
||||
&tasks_config,
|
||||
)?;
|
||||
return Ok(1);
|
||||
return Ok(0);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
"envs": {
|
||||
"NO_COLOR": "1"
|
||||
},
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
"envs": {
|
||||
"NO_COLOR": "1"
|
||||
},
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
"args": "task",
|
||||
"envs": { "NO_COLOR": "1" },
|
||||
"output": "task.out",
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
"envs": {
|
||||
"NO_COLOR": "1"
|
||||
},
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
"envs": {
|
||||
"NO_COLOR": "1"
|
||||
},
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
}
|
||||
|
|
|
@ -3,25 +3,25 @@
|
|||
"root": {
|
||||
"args": "task",
|
||||
"output": "root.out",
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
},
|
||||
"package_a": {
|
||||
"args": "task",
|
||||
"cwd": "package-a",
|
||||
"output": "package-a.out",
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
},
|
||||
"package_b": {
|
||||
"args": "task",
|
||||
"cwd": "package-b",
|
||||
"output": "package-b.out",
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
},
|
||||
"scripts": {
|
||||
"args": "task",
|
||||
"cwd": "scripts",
|
||||
"output": "scripts.out",
|
||||
"exitCode": 1
|
||||
"exitCode": 0
|
||||
},
|
||||
"package_b_tasks": {
|
||||
"steps": [{
|
||||
|
|
Loading…
Reference in a new issue