nushell/crates/nu-command/src/lib.rs
Hilmar Gústafsson 90ddb23492
Add Path commands (#280)
* Add Path command

* Add `path basename`

* Refactor operate into `mod`

* Add `path dirname`

* Add `path exists`

* Add `path expand`

* Remove Arc wrapper for args

* Add `path type`

* Add `path relative`

* Add `path parse`

* Add `path split`

* Add `path join`

* Fix errors after rebase

* Convert to Path in `operate`

* Fix table behavior in `path join`

* Use conditional import in `path parse`

* Fix missing cases for `path join`

* Update default_context.rs

* clippy

* Fix tests

* Fix tests

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
Co-authored-by: JT <jonathan.d.turner@gmail.com>
2021-12-13 12:47:14 +11:00

50 lines
833 B
Rust

mod calendar;
mod conversions;
mod core_commands;
mod date;
mod default_context;
mod env;
mod example_test;
mod experimental;
mod filesystem;
mod filters;
mod formats;
mod hash;
mod math;
mod network;
mod path;
mod platform;
mod random;
mod shells;
mod strings;
mod system;
mod viewers;
pub use calendar::*;
pub use conversions::*;
pub use core_commands::*;
pub use date::*;
pub use default_context::*;
pub use env::*;
pub use example_test::test_examples;
pub use experimental::*;
pub use filesystem::*;
pub use filters::*;
pub use formats::*;
pub use hash::*;
pub use math::*;
pub use network::*;
pub use path::*;
pub use platform::*;
pub use random::*;
pub use shells::*;
pub use strings::*;
pub use system::*;
pub use viewers::*;
#[cfg(feature = "dataframe")]
mod dataframe;
#[cfg(feature = "dataframe")]
pub use dataframe::*;