mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01:00
Merge pull request #77 from jonathandturner/master
Fix up some warnings and move integration tests to correct dir
This commit is contained in:
commit
5e6b62a02c
@ -35,7 +35,7 @@ impl<T> MaybeOwned<'a, T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn cli() -> Result<(), Box<Error>> {
|
pub async fn cli() -> Result<(), Box<dyn Error>> {
|
||||||
let mut context = Context::basic()?;
|
let mut context = Context::basic()?;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ pub struct Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
crate fn basic() -> Result<Context, Box<Error>> {
|
crate fn basic() -> Result<Context, Box<dyn Error>> {
|
||||||
Ok(Context {
|
Ok(Context {
|
||||||
commands: indexmap::IndexMap::new(),
|
commands: indexmap::IndexMap::new(),
|
||||||
host: Arc::new(Mutex::new(crate::env::host::BasicHost)),
|
host: Arc::new(Mutex::new(crate::env::host::BasicHost)),
|
||||||
|
@ -17,13 +17,12 @@ mod parser;
|
|||||||
mod prelude;
|
mod prelude;
|
||||||
mod shell;
|
mod shell;
|
||||||
mod stream;
|
mod stream;
|
||||||
mod tests;
|
|
||||||
|
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use log::LevelFilter;
|
use log::LevelFilter;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
|
||||||
fn main() -> Result<(), Box<Error>> {
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let matches = App::new("nu shell")
|
let matches = App::new("nu shell")
|
||||||
.version("0.5")
|
.version("0.5")
|
||||||
.arg(
|
.arg(
|
||||||
|
Loading…
Reference in New Issue
Block a user