From: Oguz Bektas <o.bektas@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] report: use '$' instead of '#' for showing commands
Date: Tue, 10 Nov 2020 16:01:46 +0100 [thread overview]
Message-ID: <20201110150146.1651333-1-o.bektas@proxmox.com> (raw)
since some files can contain '#' character for comments. (i.e.,
/etc/hosts)
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
src/server/report.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/server/report.rs b/src/server/report.rs
index 9513434f..bc2179b9 100644
--- a/src/server/report.rs
+++ b/src/server/report.rs
@@ -57,7 +57,7 @@ pub fn generate_report() -> String {
Ok(None) => String::from("# file does not exist"),
Err(err) => err.to_string(),
};
- format!("# cat '{}'\n{}", file_name, content)
+ format!("$ cat '{}'\n{}", file_name, content)
})
.collect::<Vec<String>>()
.join("\n\n");
@@ -73,14 +73,14 @@ pub fn generate_report() -> String {
Ok(output) => String::from_utf8_lossy(&output.stdout).to_string(),
Err(err) => err.to_string(),
};
- format!("# `{} {}`\n{}", command, args.join(" "), output)
+ format!("$ `{} {}`\n{}", command, args.join(" "), output)
})
.collect::<Vec<String>>()
.join("\n\n");
let function_outputs = function_calls()
.iter()
- .map(|(desc, function)| format!("# {}\n{}", desc, function()))
+ .map(|(desc, function)| format!("$ {}\n{}", desc, function()))
.collect::<Vec<String>>()
.join("\n\n");
--
2.20.1
next reply other threads:[~2020-11-10 15:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 15:01 Oguz Bektas [this message]
2020-11-11 15:34 ` [pbs-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201110150146.1651333-1-o.bektas@proxmox.com \
--to=o.bektas@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.