From: Ian Jackson Date: Tue, 10 Jan 2023 22:15:32 +0000 (+0000) Subject: Config inspection: tab-separate the output X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=8301959420f342588f420008e388b5d88b2b6c37;p=hippotat.git Config inspection: tab-separate the output This would let you distinguish the different keys from values within the key. Signed-off-by: Ian Jackson --- diff --git a/client/client.rs b/client/client.rs index 0747a22..a9b50e4 100644 --- a/client/client.rs +++ b/client/client.rs @@ -22,7 +22,7 @@ pub struct Opts { /// Print config item(s), do not actually run /// /// Argument is (comma-separated) list of config keys; - /// values will be printed space-separated. + /// values will be printed tab-separated. /// The key `pretty` dumps the whole config in a pretty debug format. /// /// One line is output for each association. diff --git a/server/server.rs b/server/server.rs index 50caa58..98181b9 100644 --- a/server/server.rs +++ b/server/server.rs @@ -38,7 +38,7 @@ pub struct Opts { /// Print config item(s), do not actually run /// /// Argument is (comma-separated) list of config keys; - /// values will be printed space-separated. + /// values will be printed tab-separated. /// The key `pretty` dumps the whole config in a pretty debug format. /// /// If none of the specified config keys are client-specific, diff --git a/src/config.rs b/src/config.rs index 378d958..a1e80ff 100644 --- a/src/config.rs +++ b/src/config.rs @@ -156,7 +156,7 @@ impl PrintConfigOpt<'_> { Ok::<_,AE>(DisplayInspectable(insp).to_string()) }) .collect::,_>>()? - .join(" "); + .join("\t"); println!("{}", output); } }