Skip to content

Commit

Permalink
CLI - Remove newlines from command helptext (#2277)
Browse files Browse the repository at this point in the history
Co-authored-by: Zeke Foppa <[email protected]>
  • Loading branch information
bfops and bfops authored Feb 18, 2025
1 parent 65ec786 commit 0162ace
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use super::sql::parse_req;
pub fn cli() -> clap::Command {
clap::Command::new("call")
.about(format!(
"Invokes a reducer function in a database.\n\n{}",
"Invokes a reducer function in a database. {}",
UNSTABLE_WARNING
))
.arg(
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/describe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use spacetimedb_lib::sats;
pub fn cli() -> clap::Command {
clap::Command::new("describe")
.about(format!(
"Describe the structure of a database or entities within it.\n\n{}",
"Describe the structure of a database or entities within it. {}",
UNSTABLE_WARNING
))
.arg(
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/energy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::util::{self, get_login_token_or_log_in, UNSTABLE_WARNING};
pub fn cli() -> clap::Command {
clap::Command::new("energy")
.about(format!(
"Invokes commands related to database budgets.\n\n{}",
"Invokes commands related to database budgets. {}",
UNSTABLE_WARNING
))
.args_conflicts_with_subcommands(true)
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::{Path, PathBuf};

pub fn cli() -> clap::Command {
clap::Command::new("init")
.about(format!("Initializes a new spacetime project.\n\n{}", UNSTABLE_WARNING))
.about(format!("Initializes a new spacetime project. {}", UNSTABLE_WARNING))
.arg(
Arg::new("project-path")
.value_parser(clap::value_parser!(PathBuf))
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use tabled::{
pub fn cli() -> Command {
Command::new("list")
.about(format!(
"Lists the databases attached to an identity.\n\n{}",
"Lists the databases attached to an identity. {}",
UNSTABLE_WARNING
))
.arg(common_args::server().help("The nickname, host name or URL of the server from which to list databases"))
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn cli() -> Command {
.subcommand_required(true)
.subcommands(get_subcommands())
.about(format!(
"Manage the connection to the SpacetimeDB server.\n\n{}",
"Manage the connection to the SpacetimeDB server. {}",
UNSTABLE_WARNING
))
}
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::util::{database_identity, get_auth_header, ResponseExt, UNSTABLE_WARN

pub fn cli() -> clap::Command {
clap::Command::new("sql")
.about(format!("Runs a SQL query on the database.\n\n{}", UNSTABLE_WARNING))
.about(format!("Runs a SQL query on the database. {}", UNSTABLE_WARNING))
.arg(
Arg::new("database")
.required(true)
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::Config;
pub fn cli() -> clap::Command {
clap::Command::new("subscribe")
.about(format!(
"Subscribe to SQL queries on the database.\n\n{}",
"Subscribe to SQL queries on the database. {}",
UNSTABLE_WARNING
))
.arg(
Expand Down

2 comments on commit 0162ace

@github-actions
Copy link

@github-actions github-actions bot commented on 0162ace Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Criterion benchmark results

Error when comparing benchmarks: Couldn't find AWS credentials in environment, credentials file, or IAM role.

Caused by:
Couldn't find AWS credentials in environment, credentials file, or IAM role.

@github-actions
Copy link

@github-actions github-actions bot commented on 0162ace Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Callgrind benchmark results Error when comparing benchmarks: Couldn't find AWS credentials in environment, credentials file, or IAM role.

Caused by:
Couldn't find AWS credentials in environment, credentials file, or IAM role.

Please sign in to comment.