Parcourir la source

chore(cli.rs): adjust `info` command output formatting [skip ci]

Lucas Nogueira il y a 4 ans
Parent
commit
1341ca9a1b
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      tooling/cli.rs/src/info.rs

+ 6 - 6
tooling/cli.rs/src/info.rs

@@ -530,24 +530,24 @@ impl Info {
       if let Ok(config) = get_config(None) {
         let config_guard = config.lock().unwrap();
         let config = config_guard.as_ref().unwrap();
-        InfoBlock::new("build-type")
+        InfoBlock::new("  build-type")
           .value(if config.tauri.bundle.active {
             "bundle".to_string()
           } else {
             "build".to_string()
           })
           .display();
-        InfoBlock::new("CSP")
+        InfoBlock::new("  CSP")
           .value(if let Some(security) = &config.tauri.security {
             security.csp.clone().unwrap_or_else(|| "unset".to_string())
           } else {
             "unset".to_string()
           })
           .display();
-        InfoBlock::new("distDir")
+        InfoBlock::new("  distDir")
           .value(config.build.dist_dir.to_string())
           .display();
-        InfoBlock::new("devPath")
+        InfoBlock::new("  devPath")
           .value(config.build.dev_path.to_string())
           .display();
       }
@@ -580,10 +580,10 @@ impl Info {
           .or(framework_bundler);
 
         if let Some(framework) = framework {
-          InfoBlock::new("framework").value(framework).display();
+          InfoBlock::new("  framework").value(framework).display();
         }
         if let Some(bundler) = bundler {
-          InfoBlock::new("bundler").value(bundler).display();
+          InfoBlock::new("  bundler").value(bundler).display();
         }
       } else {
         println!("package.json not found");