mirror of
https://github.com/nushell/nushell.git
synced 2025-04-26 06:08:21 +02:00
related to - https://discord.com/channels/601130461678272522/614613939334152217/1164530991931605062 # Description it appears `size` is a command that operates on `string`s only and gives the user information about the chars, graphemes and bytes of a string. this looks like a command that should be a subcommand to `str` 😏 this PR - adds `str size` - deprecates `size` `size` is planned to be removed in 0.88 # User-Facing Changes `str size` can be used for the same result as `size`. # Tests + Formatting # After Submitting write a removal PR for `size`
30 lines
727 B
Rust
30 lines
727 B
Rust
mod case;
|
|
mod contains;
|
|
mod distance;
|
|
mod ends_with;
|
|
mod expand;
|
|
mod index_of;
|
|
mod join;
|
|
mod length;
|
|
mod replace;
|
|
mod reverse;
|
|
mod size;
|
|
mod starts_with;
|
|
mod substring;
|
|
mod trim;
|
|
|
|
pub use case::*;
|
|
pub use contains::SubCommand as StrContains;
|
|
pub use distance::SubCommand as StrDistance;
|
|
pub use ends_with::SubCommand as StrEndswith;
|
|
pub use expand::SubCommand as StrExpand;
|
|
pub use index_of::SubCommand as StrIndexOf;
|
|
pub use join::*;
|
|
pub use length::SubCommand as StrLength;
|
|
pub use replace::SubCommand as StrReplace;
|
|
pub use reverse::SubCommand as StrReverse;
|
|
pub use size::SubCommand as StrSize;
|
|
pub use starts_with::SubCommand as StrStartsWith;
|
|
pub use substring::SubCommand as StrSubstring;
|
|
pub use trim::Trim as StrTrim;
|