mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -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,
|
&cli_options.start_dir,
|
||||||
&tasks_config,
|
&tasks_config,
|
||||||
)?;
|
)?;
|
||||||
return Ok(1);
|
return Ok(0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
"envs": {
|
"envs": {
|
||||||
"NO_COLOR": "1"
|
"NO_COLOR": "1"
|
||||||
},
|
},
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
"envs": {
|
"envs": {
|
||||||
"NO_COLOR": "1"
|
"NO_COLOR": "1"
|
||||||
},
|
},
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
"args": "task",
|
"args": "task",
|
||||||
"envs": { "NO_COLOR": "1" },
|
"envs": { "NO_COLOR": "1" },
|
||||||
"output": "task.out",
|
"output": "task.out",
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
"envs": {
|
"envs": {
|
||||||
"NO_COLOR": "1"
|
"NO_COLOR": "1"
|
||||||
},
|
},
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
"envs": {
|
"envs": {
|
||||||
"NO_COLOR": "1"
|
"NO_COLOR": "1"
|
||||||
},
|
},
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,25 +3,25 @@
|
||||||
"root": {
|
"root": {
|
||||||
"args": "task",
|
"args": "task",
|
||||||
"output": "root.out",
|
"output": "root.out",
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
},
|
},
|
||||||
"package_a": {
|
"package_a": {
|
||||||
"args": "task",
|
"args": "task",
|
||||||
"cwd": "package-a",
|
"cwd": "package-a",
|
||||||
"output": "package-a.out",
|
"output": "package-a.out",
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
},
|
},
|
||||||
"package_b": {
|
"package_b": {
|
||||||
"args": "task",
|
"args": "task",
|
||||||
"cwd": "package-b",
|
"cwd": "package-b",
|
||||||
"output": "package-b.out",
|
"output": "package-b.out",
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"args": "task",
|
"args": "task",
|
||||||
"cwd": "scripts",
|
"cwd": "scripts",
|
||||||
"output": "scripts.out",
|
"output": "scripts.out",
|
||||||
"exitCode": 1
|
"exitCode": 0
|
||||||
},
|
},
|
||||||
"package_b_tasks": {
|
"package_b_tasks": {
|
||||||
"steps": [{
|
"steps": [{
|
||||||
|
|
Loading…
Add table
Reference in a new issue