Skip to content

Commit d4b0c34

Browse files
committed
Address review feedback
#23 (comment)
1 parent a06f94a commit d4b0c34

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/commands/edit.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ fn require_edit_tty() -> Result<()> {
3232
return Ok(());
3333
}
3434
anyhow::bail!(
35-
"`a8c-secrets edit` is interactive only: stdin and stdout must be connected to a terminal. \
36-
Run it from a real terminal."
35+
"`a8c-secrets edit` is interactive only: stdin and stdout must be connected to a terminal. Run it from a real terminal."
3736
);
3837
}
3938

4039
/// Shown below interactive `edit` prompts (`Select` / `Confirm`, inquire help line).
41-
const EDITOR_TRUST_HELP: &str = "Only continue if you trust this EDITOR command, as it will see the decrypted \
42-
file contents and might leak it. When in doubt, decline and set EDITOR to a program you trust before \
43-
trying again.";
40+
const EDITOR_TRUST_HELP: &str = "Only continue if you trust this EDITOR command, as it will see the decrypted file contents and might leak it. When in doubt, decline and set EDITOR to a program you trust before trying again.";
4441

4542
fn resolve_secret_to_edit(
4643
repo_identifier: &config::RepoIdentifier,
@@ -54,8 +51,7 @@ fn resolve_secret_to_edit(
5451
let names = config::list_decrypted_files(repo_identifier)?;
5552
if names.is_empty() {
5653
anyhow::bail!(
57-
"No decrypted secret files found. Run `decrypt` first, or create a secret by name with \
58-
`a8c-secrets edit <file>`."
54+
"No decrypted secret files found. Run `decrypt` first, or create a secret by name with `a8c-secrets edit <file>`."
5955
);
6056
}
6157

@@ -90,8 +86,7 @@ fn confirm_cli_edit_session(
9086

9187
fn err_decrypted_path_not_regular_file(file: &SecretFileName) -> anyhow::Error {
9288
anyhow::anyhow!(
93-
"Decrypted path for '{file}' exists but is not a regular file (for example a directory). \
94-
Remove or rename it, then retry."
89+
"Decrypted path for '{file}' exists but is not a regular file (for example a directory). Remove or rename it, then retry."
9590
)
9691
}
9792

0 commit comments

Comments
 (0)