nushell/crates/nu-command/src
Ian Manske 1fd3bc1ba6
Add exec command for Windows (#11001)
# Description
Based of the work and discussion in #10844, this PR adds the `exec`
command for Windows. This is done by simply spawning a
`std::process::Command` and then immediately exiting via
`std::process::exit` once the child process is finished. The child
process's exit code is passed to `exit`.

# User-Facing Changes
The `exec` command is now available on Windows, and there should be no
change in behaviour for Unix systems.
2023-11-08 14:50:25 -06:00
..
bytes Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
charting Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
conversions Convert ShellError::DatetimeParseError to named fields (#10991) 2023-11-08 13:04:02 +01:00
database Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
date Convert ShellError::DatetimeParseError to named fields (#10991) 2023-11-08 13:04:02 +01:00
debug Use Record::get instead of Value functions (#10925) 2023-11-08 21:47:37 +01:00
env Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Add umkdir command (#10785) 2023-10-30 07:59:48 -05:00
filters Use Record::get instead of Value functions (#10925) 2023-11-08 21:47:37 +01:00
formats Use Record::get instead of Value functions (#10925) 2023-11-08 21:47:37 +01:00
generators Use Vec for Closure captures (#10940) 2023-11-08 00:43:28 +01:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Add 'help escapes' command for quick reference of nushell string escapes (#10522) 2023-09-30 09:04:27 -05:00
math Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
misc Add long options for misc and network (#10753) 2023-10-19 18:16:44 +02:00
network Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
path Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
platform Convert ShellError::UnsupportedInput to named fields (#10971) 2023-11-07 23:25:32 +01:00
random Add long options for platform and random (#10776) 2023-10-19 22:04:33 +02:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
system Add exec command for Windows (#11001) 2023-11-08 14:50:25 -06:00
viewers Use Record::get instead of Value functions (#10925) 2023-11-08 21:47:37 +01:00
default_context.rs Add exec command for Windows (#11001) 2023-11-08 14:50:25 -06:00
example_test.rs feat: Add unfold command (#10489) 2023-09-30 09:08:06 -05:00
lib.rs Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00