Ensure that command usage starts uppercase and ends period (#11278)

# Description

This repeats #8268 to make all command usage strings start with an
uppercase letter and end with a period per #5056

Adds a test to ensure that commands won't regress

Part of #5066

# User-Facing Changes

Command usage is now consistent

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

Automatic documentation updates
This commit is contained in:
Eric Hodel
2023-12-10 06:28:54 -08:00
committed by GitHub
parent 3e5f81ae14
commit ecb3b3a364
22 changed files with 81 additions and 32 deletions

View File

@ -35,7 +35,7 @@ impl Command for StorCreate {
}
fn usage(&self) -> &str {
"Create a table in the in-memory sqlite database"
"Create a table in the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -35,7 +35,7 @@ impl Command for StorDelete {
}
fn usage(&self) -> &str {
"Delete a table or specified rows in the in-memory sqlite database"
"Delete a table or specified rows in the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -29,7 +29,7 @@ impl Command for StorExport {
}
fn usage(&self) -> &str {
"Export the in-memory sqlite database to a sqlite database file"
"Export the in-memory sqlite database to a sqlite database file."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -29,7 +29,7 @@ impl Command for StorImport {
}
fn usage(&self) -> &str {
"Import a sqlite database file into the in-memory sqlite database"
"Import a sqlite database file into the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -35,7 +35,7 @@ impl Command for StorInsert {
}
fn usage(&self) -> &str {
"Insert information into a specified table in the in-memory sqlite database"
"Insert information into a specified table in the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -24,7 +24,7 @@ impl Command for StorOpen {
}
fn usage(&self) -> &str {
"Opens the in-memory sqlite database"
"Opens the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -21,7 +21,7 @@ impl Command for StorReset {
}
fn usage(&self) -> &str {
"Reset the in-memory database by dropping all tables"
"Reset the in-memory database by dropping all tables."
}
fn search_terms(&self) -> Vec<&str> {

View File

@ -41,7 +41,7 @@ impl Command for StorUpdate {
}
fn usage(&self) -> &str {
"Update information in a specified table in the in-memory sqlite database"
"Update information in a specified table in the in-memory sqlite database."
}
fn search_terms(&self) -> Vec<&str> {