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:
Leon
2022-11-10 15:49:11 +10:00
committed by GitHub
parent bb0d08a721
commit 921a66554e
55 changed files with 71 additions and 73 deletions

View File

@ -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)
}

View File

@ -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)

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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",
)
}

View File

@ -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> {

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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",

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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(

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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",
)
}

View File

@ -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,