Skip to content

Commit

Permalink
style: use \ line breaks to improve inline snippet structure
Browse files Browse the repository at this point in the history
  • Loading branch information
empwilli committed Apr 8, 2024
1 parent 9e49e9c commit 1ddb7d5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ Please remove config file first."#
if let Ok("windows") = std::env::var("CONTAINER_HOST").as_deref() {
writeln!(
&mut writer,
r#"Host bastion
"\
Host bastion
User {}
Hostname {}
Port {}
Expand All @@ -229,7 +230,7 @@ Host {}
User {}
IdentityFile ~/.ssh/{}
CertificateFile ~/.ssh/{}
ProxyCommand ssh bastion"#,
ProxyCommand ssh bastion",
bastion_details.username,
bastion_details.hostname,
bastion_details.port,
Expand All @@ -254,7 +255,8 @@ Host {}
} else {
writeln!(
&mut writer,
r#"Host bastion
"\
Host bastion
User {}
Hostname {}
Port {}
Expand All @@ -266,7 +268,7 @@ Host {}
User {}
IdentityFile {}
CertificateFile {}
ProxyCommand ssh -F {} bastion"#,
ProxyCommand ssh -F {} bastion",
bastion_details.username,
bastion_details.hostname,
bastion_details.port,
Expand Down

0 comments on commit 1ddb7d5

Please sign in to comment.