Expand description
Re-exports§
pub use crate::local_bin::PreferLocal;
Structs§
- Options
- Options controlling how commands are run (the fields of zx
$). - Shell
- A command factory carrying
Options(the zx$).
Constants§
- BASH_
PREFIX - Prefix used by bash so that failures inside pipelines are not hidden.
- POWERSHELL_
POSTFIX - Postfix used by PowerShell so that the exit code is propagated.
Functions§
- cd
- Change the working directory of the current scope (zx
cd()). - configure
- Mutate the options of the current scope (zx
$.verbose = true, …). - current_
options - Snapshot of the options active in the current
withinscope (or the global defaults, which honourZX_*environment variables). - find_
executable - Locate an executable on
PATH. - use_
bash - Switch the current scope to bash.
- use_
powershell - Switch the current scope to
powershell.exe. - use_
pwsh - Switch the current scope to
pwsh. - within
- Run
futwith a private copy of the current options, so that changes made inside (viaconfigureorcd) do not leak out. - within_
sync - Synchronous flavour of
within.