mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
no-op
This commit is contained in:
parent
9e7285ad46
commit
909b7d2160
@ -1,6 +1,8 @@
|
||||
use std::path::Path;
|
||||
|
||||
use nu_protocol::ast::Call;
|
||||
use nu_protocol::engine::{Command, EvaluationContext};
|
||||
use nu_protocol::{Signature, SyntaxShape, Value};
|
||||
use nu_protocol::{ShellError, Signature, SyntaxShape, Value};
|
||||
|
||||
/// Source a file for environment variables.
|
||||
pub struct Source;
|
||||
@ -27,7 +29,7 @@ impl Command for Source {
|
||||
_context: &EvaluationContext,
|
||||
call: &Call,
|
||||
input: Value,
|
||||
) -> Result<nu_protocol::Value, nu_protocol::ShellError> {
|
||||
) -> Result<Value, ShellError> {
|
||||
Ok(Value::Nothing { span: call.head })
|
||||
// source(_context, call, input)
|
||||
}
|
||||
|
@ -581,6 +581,8 @@ pub fn parse_source(
|
||||
// None,
|
||||
// );
|
||||
}
|
||||
} else {
|
||||
// Source file couldn't be parsed correctly
|
||||
}
|
||||
}
|
||||
}
|
||||
|
5
example.nu
Normal file
5
example.nu
Normal file
@ -0,0 +1,5 @@
|
||||
def greet [name] {
|
||||
echo "hello" $name
|
||||
}
|
||||
|
||||
greet "world"
|
Loading…
Reference in New Issue
Block a user