mirror of
https://github.com/nushell/nushell.git
synced 2024-11-30 04:14:17 +01:00
194 Fixed file format
This commit is contained in:
parent
74dddc880d
commit
c209d0d487
@ -8,11 +8,11 @@ use crate::prelude::*;
|
|||||||
use crate::shell::completer::NuCompleter;
|
use crate::shell::completer::NuCompleter;
|
||||||
use crate::shell::shell::Shell;
|
use crate::shell::shell::Shell;
|
||||||
use crate::utils::FileStructure;
|
use crate::utils::FileStructure;
|
||||||
use trash as SendToTrash;
|
|
||||||
use rustyline::completion::FilenameCompleter;
|
use rustyline::completion::FilenameCompleter;
|
||||||
use rustyline::hint::{Hinter, HistoryHinter};
|
use rustyline::hint::{Hinter, HistoryHinter};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::atomic::Ordering;
|
use std::sync::atomic::Ordering;
|
||||||
|
use trash as SendToTrash;
|
||||||
|
|
||||||
pub struct FilesystemShell {
|
pub struct FilesystemShell {
|
||||||
pub(crate) path: String,
|
pub(crate) path: String,
|
||||||
@ -861,7 +861,11 @@ impl Shell for FilesystemShell {
|
|||||||
|
|
||||||
fn rm(
|
fn rm(
|
||||||
&self,
|
&self,
|
||||||
RemoveArgs { target, recursive, trash }: RemoveArgs,
|
RemoveArgs {
|
||||||
|
target,
|
||||||
|
recursive,
|
||||||
|
trash,
|
||||||
|
}: RemoveArgs,
|
||||||
name: Tag,
|
name: Tag,
|
||||||
path: &str,
|
path: &str,
|
||||||
) -> Result<OutputStream, ShellError> {
|
) -> Result<OutputStream, ShellError> {
|
||||||
|
Loading…
Reference in New Issue
Block a user