Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI - Fix helptext after #1845 #1889

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Or initialize a default identity with:
format!(
"Cannot verify tokens using invalid saved fingerprint from server: {server}
Update the fingerprint with:
\tspacetime server fingerprint -s {server}",
\tspacetime server fingerprint {server}",
)
})?;
decode_token(&decoder, &id.token).map_err(|_| {
Expand Down Expand Up @@ -120,13 +120,13 @@ const NO_DEFAULT_SERVER_ERROR_MESSAGE: &str = "No default server configuration.
Set an existing server as the default with:
\tspacetime server set-default <server>
Or add a new server which will become the default:
\tspacetime server add <url> --default";
\tspacetime server add {server} <url> --default";

fn no_such_server_error(server: &str) -> anyhow::Error {
anyhow::anyhow!(
"No such saved server configuration: {server}
Add a new server configuration with:
\tspacetime server add <url>",
\tspacetime server add {server} --url <url>",
)
}

Expand Down Expand Up @@ -973,7 +973,7 @@ Import an existing identity with:
format!(
"Unable to parse invalid saved server fingerprint as ECDSA public key.
Update the server's fingerprint with:
\tspacetime server fingerprint -s {}",
\tspacetime server fingerprint {}",
server.unwrap_or("")
)
})
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ async fn exec_list(config: Config, args: &ArgMatches) -> Result<(), anyhow::Erro
format!(
"Cannot list identities for server without a saved fingerprint: {server_name}
Fetch the server's fingerprint with:
\tspacetime server fingerprint -s {server_name}"
\tspacetime server fingerprint {server_name}"
)
})?;
let default_identity = config.get_default_identity_config(server).ok().map(|cfg| cfg.identity);
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 @@ -216,7 +216,7 @@ pub async fn exec_add(mut config: Config, args: &ArgMatches) -> Result<(), anyho
"Unable to retrieve fingerprint for server: {url}
Is the server running?
Add a server without retrieving its fingerprint with:
\tspacetime server add {url} --no-fingerprint",
\tspacetime server add --url {url} --no-fingerprint",
)
})?;
println!("For server {}, got fingerprint:\n{}", url, fingerprint);
Expand Down
Loading