chiark / gitweb /
Config inspection: tab-separate the output
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Jan 2023 22:15:32 +0000 (22:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 Jan 2023 02:12:41 +0000 (02:12 +0000)
This would let you distinguish the different keys from values within
the key.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
client/client.rs
server/server.rs
src/config.rs

index 0747a223bfc6bd53b6b70f37b071e1390f9972cf..a9b50e4d72eaa7ede27db20f4f9c392ffd705130 100644 (file)
@@ -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.
index 50caa58e7306389ad4aa79a89c16e793ca69e43c..98181b9a9b659cc70a3cceca557380493d045e2c 100644 (file)
@@ -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,
index 378d9588b8567532cf36d9708fd1212c194e3d46..a1e80ff42922eb20d1e73045fb5d9bc602164f4c 100644 (file)
@@ -156,7 +156,7 @@ impl PrintConfigOpt<'_> {
         Ok::<_,AE>(DisplayInspectable(insp).to_string())
       })
       .collect::<Result<Vec<_>,_>>()?
-      .join(" ");
+      .join("\t");
     println!("{}",  output);
   }
 }