mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 20:06:18 +02:00
Allow NU_LIBS_DIR and friends to be const (#8538)
This commit is contained in:
@ -45,7 +45,7 @@ impl Command for Source {
|
||||
) -> Result<PipelineData, ShellError> {
|
||||
// Note: this hidden positional is the block_id that corresponded to the 0th position
|
||||
// it is put here by the parser
|
||||
let block_id: i64 = call.req_parser_info(engine_state, stack, 0)?;
|
||||
let block_id: i64 = call.req_parser_info(engine_state, stack, "block_id")?;
|
||||
|
||||
let block = engine_state.get_block(block_id as usize).clone();
|
||||
eval_block_with_early_return(
|
||||
|
Reference in New Issue
Block a user