mise dotfiles capture
- 用法:
mise dotfiles capture [--label <LABEL>] <-- COMMAND>… - 源代码:
src/cli/dotfiles/capture.rs
Run a command and save tracked files before and after it
Runs the command with your terminal and environment and saves a checkpoint before and after it, even when the command fails or changes nothing, so mise dot undo can reverse what it did to your tracked files. Edits you make while it runs are part of the same operation. Packages, services, and other system changes are not recorded and cannot be undone. If saving fails, mise warns and still exits with the command's status.
参数
<-- COMMAND>…— 要运行的命令及参数,位于 -- 之后
选项
--label <LABEL>— 在历史记录中描述此操作-h --help— 打印帮助
Examples
Record what an upgrade changes
mise dot capture -- brew upgradeLabel the operation in history
mise dot capture --label "theme switch" -- ./switch-theme.sh