mirror of
https://github.com/nushell/nushell
synced 2025-01-15 14:44:14 +00:00
no-op
This commit is contained in:
parent
9e7285ad46
commit
909b7d2160
3 changed files with 11 additions and 2 deletions
|
@ -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 a new issue