mirror of
https://github.com/nushell/nushell.git
synced 2025-06-02 16:16:01 +02:00
- this PR should close #15757 # Description > [!NOTE] > [`-File <filePath> <args>`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_exe?view=powershell-5.1#-file----filepath-args) > - Enter the script filepath and any parameters > - All values typed after the File parameter are interpreted as the script filepath and parameters passed to that script. > [!NOTE] > [`-Command`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_exe?view=powershell-5.1#-command) > - The value of Command can be -, a _script block_, or a _string_. > - In `cmd.exe` (and other externall callers), there is no such thing as a _script block_, so the value passed to Command is always a _**string**_. > - A string passed to Command is still executed as PowerShell code. > [!NOTE] > [Call operator `&`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-5.1#call-operator-) > - Runs a command, ***script***, or script block. Basically using `-Command` to run scripts would require _another_ layer of quoting and escaping. It looks like `-File` is the way to run powershell scripts as an external caller. # User-Facing Changes # Tests + Formatting # After Submitting Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
This crate contains the majority of our commands
We allow ourselves to move some of the commands in nu-command
to nu-cmd-*
crates as needed.
Internal Nushell crate
This crate implements components of Nushell and is not designed to support plugin authors or other users directly.