forked from extern/nushell
WIP: Path utility commands (#2255)
* Add new path commands basename, expand and extension. Currently there is no real error handling. expand returns the initial path if it didn't work, the others return empty string * Optionally apply to path
This commit is contained in:
@ -76,6 +76,7 @@ pub(crate) mod next;
|
||||
pub(crate) mod nth;
|
||||
pub(crate) mod open;
|
||||
pub(crate) mod parse;
|
||||
pub(crate) mod path;
|
||||
pub(crate) mod pivot;
|
||||
pub(crate) mod plugin;
|
||||
pub(crate) mod prepend;
|
||||
@ -203,6 +204,7 @@ pub(crate) use next::Next;
|
||||
pub(crate) use nth::Nth;
|
||||
pub(crate) use open::Open;
|
||||
pub(crate) use parse::Parse;
|
||||
pub(crate) use path::{PathBasename, PathCommand, PathExpand, PathExtension};
|
||||
pub(crate) use pivot::Pivot;
|
||||
pub(crate) use prepend::Prepend;
|
||||
pub(crate) use prev::Previous;
|
||||
|
Reference in New Issue
Block a user