Skip to content

Commit cca52ee

Browse files
committed
fix(config): change "Cancel" option to "Done" in config and make it working
1 parent d458871 commit cca52ee

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ export async function showConfigUI() {
158158
hint: "edit the prompt template",
159159
},
160160
{
161-
label: "Cancel",
162-
value: "cancel",
161+
label: "Done", // Changed from "Cancel" to "Done"
162+
value: "done",
163163
hint: "exit",
164164
},
165165
],
166-
})) as keyof Config | "template" | "cancel" | symbol;
166+
})) as keyof Config | "template" | "done" | symbol;
167167

168-
if (p.isCancel(choice)) {
169-
process.exit(0);
168+
if (p.isCancel(choice) || choice === "done") {
169+
process.exit(0); // Ensure it exits when "Done" is selected
170170
}
171171

172172
if (choice === "API_KEY") {

0 commit comments

Comments
 (0)