nushell/src/main.rs

14 lines
282 B
Rust
Raw Normal View History

use nu_cli::App as CliApp;
use nu_errors::ShellError;
2019-05-10 18:59:12 +02:00
fn main() -> Result<(), ShellError> {
let mut argv = vec![String::from("nu")];
argv.extend(positionals());
CliApp::run(&argv)
}
fn positionals() -> Vec<String> {
std::env::args().skip(1).collect::<Vec<_>>()
2019-05-15 18:12:38 +02:00
}