浏览代码

Feat: CLI Debug Warning (#3779)

* feat: cli debug warning

* fix: fmt
Miles Murgaw 4 月之前
父节点
当前提交
9c5f9882d9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/cli/src/main.rs

+ 4 - 0
packages/cli/src/main.rs

@@ -41,6 +41,10 @@ async fn main() {
     }
 
     let args = TraceController::initialize();
+
+    #[cfg(debug_assertions)]
+    tracing::warn!("CLI was built with debug profile. Commands will run slower.");
+
     let result = match args.action {
         Commands::Translate(opts) => opts.translate(),
         Commands::New(opts) => opts.create(),