forked from extern/nushell
Prototype shebang support (#1368)
* Add shebang support to nu. * Move test file * Add test for scripts Co-authored-by: Jason Gedge <jason.gedge@shopify.com>
This commit is contained in:
@ -122,6 +122,19 @@ mod nu_commands {
|
||||
}
|
||||
}
|
||||
|
||||
mod nu_script {
|
||||
use super::nu;
|
||||
|
||||
#[test]
|
||||
fn run_nu_script() {
|
||||
let actual = nu!(cwd: "tests/fixtures/formats", r#"
|
||||
nu script.nu
|
||||
"#);
|
||||
|
||||
assert_eq!(actual, "done");
|
||||
}
|
||||
}
|
||||
|
||||
mod tilde_expansion {
|
||||
use super::nu;
|
||||
|
||||
|
Reference in New Issue
Block a user