瀏覽代碼

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

Lucas Nogueira 4 年之前
父節點
當前提交
1341ca9a1b
共有 1 個文件被更改,包括 6 次插入6 次删除
  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");