Skip to content

Commit 8eeec8d

Browse files
nyqykknyqykk
andauthored
feat: skip tools selection when tools is empty string (#37)
Co-authored-by: nyqykk <nieyan.kk@bytedance.com>
1 parent a6e41bb commit 8eeec8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ async function getTools({ tools, dir, template }: Argv) {
108108
if (dir && template) {
109109
return [];
110110
}
111+
// skip tools selection when tools is empty string
112+
if (tools === '') {
113+
return [];
114+
}
111115

112116
return checkCancel<string[]>(
113117
await multiselect({

0 commit comments

Comments
 (0)