You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`tnmsc clean`removes generated output files. It is not a blind directory deletion command. It follows the current output model and cleanup-protection rules.
After normal cleanup finishes, `tnmsc clean`also scans the current project source tree and removes remaining empty directories. That empty-dir sweep explicitly skips Git internals as well as dependency, build-output, and cache directory trees.
24
24
25
-
在真正执行前,优先用:
25
+
Before running it for real, prefer:
26
26
27
27
```sh
28
28
tnmsc clean --dry-run
29
29
```
30
30
31
-
`--dry-run`也会把这些后续会被清掉的空目录一起展示出来。
31
+
`--dry-run`will also show the empty directories that would be removed afterward.
If your output directories also contain hand-written files or outputs from other tools, read [Cleanup Protection](/docs/cli/cleanup-protection) first. Without protection rules, the risk of `clean`rises sharply.
36
36
37
-
## 推荐习惯
37
+
## Recommended Habits
38
38
39
-
1.改配置或换项目时先`dry-run`
40
-
2.真要清理时先`clean --dry-run`
41
-
3.出现异常时再结合 [排障](/docs/cli/troubleshooting) 定位
39
+
1.Run`dry-run` first when you change config or switch projects.
40
+
2.Run`clean --dry-run` first when you really intend to clean.
41
+
3.If something looks wrong, continue with [Troubleshooting](/docs/cli/troubleshooting).
The current system does more than write files. It also applies cleanup boundaries based on configuration. On a first integration, checking the preview is much cheaper than recovering from accidental writes or accidental deletions afterward.
If you are unsure about cleanup risk, read [dry-run and clean](/docs/cli/dry-run-and-clean)and [Cleanup Protection](/docs/cli/cleanup-protection) first.
0 commit comments