nushell/crates/nu-cli/src/commands/str_/mod.rs
Rick Richardson f6ff6ab6e4
added various case conversion commands for str. Added the inflection … (#2363)
* added various case conversion commands for str. Added the inflection crate as a dependency

* lighten the restriction on the inflector dependency

* publishing the case commands

* fix typo

* fix kebab case test

* formatting
2020-08-18 08:18:23 +12:00

48 lines
1.4 KiB
Rust

mod capitalize;
mod case;
mod collect;
mod command;
mod contains;
mod downcase;
mod ends_with;
mod find_replace;
pub mod from;
mod index_of;
mod length;
mod reverse;
mod set;
mod starts_with;
mod substring;
mod to_datetime;
mod to_decimal;
mod to_integer;
mod trim;
mod upcase;
pub use capitalize::SubCommand as StrCapitalize;
pub use case::camel_case::SubCommand as StrCamelCase;
pub use case::kebab_case::SubCommand as StrKebabCase;
pub use case::pascal_case::SubCommand as StrPascalCase;
pub use case::screaming_snake_case::SubCommand as StrScreamingSnakeCase;
pub use case::snake_case::SubCommand as StrSnakeCase;
pub use collect::SubCommand as StrCollect;
pub use command::Command as Str;
pub use contains::SubCommand as StrContains;
pub use downcase::SubCommand as StrDowncase;
pub use ends_with::SubCommand as StrEndsWith;
pub use find_replace::SubCommand as StrFindReplace;
pub use from::SubCommand as StrFrom;
pub use index_of::SubCommand as StrIndexOf;
pub use length::SubCommand as StrLength;
pub use reverse::SubCommand as StrReverse;
pub use set::SubCommand as StrSet;
pub use starts_with::SubCommand as StrStartsWith;
pub use substring::SubCommand as StrSubstring;
pub use to_datetime::SubCommand as StrToDatetime;
pub use to_decimal::SubCommand as StrToDecimal;
pub use to_integer::SubCommand as StrToInteger;
pub use trim::Trim as StrTrim;
pub use trim::TrimLeft as StrTrimLeft;
pub use trim::TrimRight as StrTrimRight;
pub use upcase::SubCommand as StrUpcase;