mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
Assign variables when passed as an argument. (#1947)
This commit is contained in:
parent
160191e9f4
commit
48672f8e30
1 changed files with 4 additions and 6 deletions
|
@ -384,18 +384,16 @@ impl WholeStreamCommand for FnFilterCommand {
|
|||
|
||||
async fn run(
|
||||
&self,
|
||||
args: CommandArgs,
|
||||
registry: &CommandRegistry,
|
||||
) -> Result<OutputStream, ShellError> {
|
||||
let CommandArgs {
|
||||
CommandArgs {
|
||||
host,
|
||||
ctrl_c,
|
||||
shell_manager,
|
||||
call_info,
|
||||
mut input,
|
||||
..
|
||||
} = args;
|
||||
|
||||
}: CommandArgs,
|
||||
registry: &CommandRegistry,
|
||||
) -> Result<OutputStream, ShellError> {
|
||||
let host: Arc<parking_lot::Mutex<dyn Host>> = host.clone();
|
||||
let registry: CommandRegistry = registry.clone();
|
||||
let func = self.func;
|
||||
|
|
Loading…
Reference in a new issue