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:
Jonathan Turner
2020-02-10 08:49:45 -08:00
committed by GitHub
parent a29d52158e
commit fb532f3f4e
4 changed files with 52 additions and 6 deletions

View File

@ -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;