mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Replace all instances of 'column path' in help
messages with 'cell path' (#7063)
* Rewrite all 'column path' instances to 'cell path' * Minor tweak
This commit is contained in:
@ -34,7 +34,7 @@ impl Command for DecodeBase64 {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally base64 decode data by column paths",
|
||||
"For a data structure input, decode data at the given cell paths",
|
||||
)
|
||||
.category(Category::Hash)
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ impl Command for EncodeBase64 {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally base64 encode data by column paths",
|
||||
"For a data structure input, encode data at the given cell paths",
|
||||
)
|
||||
.output_type(Type::String)
|
||||
.category(Category::Hash)
|
||||
|
@ -37,7 +37,7 @@ impl Command for FileSize {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"Optionally find and replace text by column paths",
|
||||
"For a data structure input, format filesizes at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to camelCase by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally capitalize text by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally downcase text by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to kebab-case by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to PascalCase by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to SCREAMING_SNAKE_CASE by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to snake_case by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally convert text to Title Case by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally upcase text by column paths",
|
||||
"For a data structure input, convert strings at the given cell paths",
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -31,11 +31,11 @@ impl Command for SubCommand {
|
||||
Signature::build("str contains")
|
||||
.input_output_types(vec![(Type::String, Type::Bool)])
|
||||
.vectorizes_over_list(true)
|
||||
.required("string", SyntaxShape::String, "the string to find")
|
||||
.required("string", SyntaxShape::String, "the substring to find")
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally check if input contains string by column paths",
|
||||
"For a data structure input, check strings at the given cell paths, and replace with result",
|
||||
)
|
||||
.switch("insensitive", "search is case insensitive", Some('i'))
|
||||
.switch("not", "does not contain", Some('n'))
|
||||
@ -43,7 +43,7 @@ impl Command for SubCommand {
|
||||
}
|
||||
|
||||
fn usage(&self) -> &str {
|
||||
"Checks if input contains string"
|
||||
"Checks if string input contains a substring"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
|
@ -37,7 +37,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally check if string contains pattern by column paths",
|
||||
"For a data structure input, check strings at the given cell paths, and replace with result",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally matches suffix of text by cell paths",
|
||||
"For a data structure input, check strings at the given cell paths, and replace with result",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally returns index of string in input by column paths",
|
||||
"For a data structure input, search strings at the given cell paths, and replace with result",
|
||||
)
|
||||
.named(
|
||||
"range",
|
||||
|
@ -20,7 +20,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally find length of text by column paths",
|
||||
"For a data structure input, replace strings at the given cell paths with their length",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally check if string contains pattern by column paths",
|
||||
"For a data structure input, pad strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally find and replace text by column paths",
|
||||
"For a data structure input, operate on strings at the given cell paths",
|
||||
)
|
||||
.switch("all", "replace all occurrences of find string", Some('a'))
|
||||
.switch(
|
||||
|
@ -21,7 +21,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally reverse text by column paths",
|
||||
"For a data structure input, reverse strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally check if string contains pattern by column paths",
|
||||
"For a data structure input, pad strings at the given cell paths",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally matches prefix of text by column paths",
|
||||
"For a data structure input, check strings at the given cell paths, and replace with result",
|
||||
)
|
||||
.category(Category::Strings)
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally substring text by column paths",
|
||||
"For a data structure input, turn strings at the given cell paths into substrings",
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -44,8 +44,7 @@ impl Command for SubCommand {
|
||||
.rest(
|
||||
"rest",
|
||||
SyntaxShape::CellPath,
|
||||
"optionally trim text by column paths",
|
||||
)
|
||||
"For a data structure input, trim strings at the given cell paths", )
|
||||
.named(
|
||||
"char",
|
||||
SyntaxShape::String,
|
||||
|
Reference in New Issue
Block a user