mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 04:50:28 +01:00
Port str trim (#394)
This commit is contained in:
parent
34e0fd622b
commit
2bbba3f5da
@ -148,6 +148,7 @@ pub fn create_default_context() -> EngineState {
|
|||||||
StrStartsWith,
|
StrStartsWith,
|
||||||
StrReverse,
|
StrReverse,
|
||||||
StrSubstring,
|
StrSubstring,
|
||||||
|
StrTrim,
|
||||||
Sys,
|
Sys,
|
||||||
Table,
|
Table,
|
||||||
To,
|
To,
|
||||||
|
@ -12,6 +12,7 @@ mod reverse;
|
|||||||
mod rpad;
|
mod rpad;
|
||||||
mod starts_with;
|
mod starts_with;
|
||||||
mod substring;
|
mod substring;
|
||||||
|
mod trim;
|
||||||
|
|
||||||
pub use capitalize::SubCommand as StrCapitalize;
|
pub use capitalize::SubCommand as StrCapitalize;
|
||||||
pub use case::*;
|
pub use case::*;
|
||||||
@ -27,3 +28,4 @@ pub use reverse::SubCommand as StrReverse;
|
|||||||
pub use rpad::SubCommand as StrRpad;
|
pub use rpad::SubCommand as StrRpad;
|
||||||
pub use starts_with::SubCommand as StrStartsWith;
|
pub use starts_with::SubCommand as StrStartsWith;
|
||||||
pub use substring::SubCommand as StrSubstring;
|
pub use substring::SubCommand as StrSubstring;
|
||||||
|
pub use trim::Trim as StrTrim;
|
||||||
|
1160
crates/nu-command/src/strings/str_/trim/command.rs
Normal file
1160
crates/nu-command/src/strings/str_/trim/command.rs
Normal file
File diff suppressed because it is too large
Load Diff
2
crates/nu-command/src/strings/str_/trim/mod.rs
Normal file
2
crates/nu-command/src/strings/str_/trim/mod.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mod command;
|
||||||
|
pub use command::SubCommand as Trim;
|
Loading…
Reference in New Issue
Block a user