fix: honor --dry-run in update and uninstall
This commit is contained in:
parent
6229538d29
commit
744cb36d74
9 changed files with 113 additions and 23 deletions
|
|
@ -78,7 +78,7 @@ ${bold("옵션")}
|
|||
-s, --scope <범위> user | project ${dim("(기본: user)")}
|
||||
-y, --yes 확인 없이 진행합니다
|
||||
-f, --force 직접 수정한 파일도 덮어씁니다 ${dim("(.orig 로 백업)")}
|
||||
--dry-run 쓰지 않고 계획만 보여줍니다
|
||||
--dry-run 쓰지 않고 계획만 보여줍니다 (install · update · uninstall)
|
||||
--no-update-check 새 버전 확인을 건너뜁니다
|
||||
-h, --help 이 도움말
|
||||
-v, --version 버전
|
||||
|
|
@ -87,6 +87,7 @@ ${bold("예시")}
|
|||
${dim("npx designpaca install -t claude-code,codex -s user -y")}
|
||||
${dim("npx designpaca install -t cursor -s project")}
|
||||
${dim("npx designpaca update --force")}
|
||||
${dim("npx designpaca update --dry-run")}
|
||||
${dim("npx designpaca tools --yes")}
|
||||
`.trimStart();
|
||||
}
|
||||
|
|
@ -140,11 +141,11 @@ async function main(): Promise<number> {
|
|||
break;
|
||||
}
|
||||
case "update":
|
||||
code = await runUpdate({ force: args.force });
|
||||
code = await runUpdate({ force: args.force, dryRun: args.dryRun });
|
||||
break;
|
||||
case "uninstall":
|
||||
case "remove":
|
||||
code = await runUninstall({ targets: args.targets, force: args.force });
|
||||
code = await runUninstall({ targets: args.targets, force: args.force, dryRun: args.dryRun });
|
||||
break;
|
||||
case "doctor":
|
||||
code = await runDoctor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue