Skip to content

Commit

Permalink
feat(cli): ask 下載後作為語言包版本控制模式
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jul 25, 2022
1 parent 1f2c844 commit 2e021ed
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/cli/handle-argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,22 @@ export function _handleArgv(argv: ITSResolvable<IArgvDownload>)
return result.all;
});

source = source ?? await prompt<{
bool: boolean,
}>({
name: 'bool',
type: 'confirm',
message: chalkByConsole((chalk) =>
{
return chalk.red(`下載後作為語言包版本控制模式?`)
}, console),
}).then(result =>
{
return result.bool;
});

return (all ? cliSelectVersion : cliSelectSeries)()
.then(result =>
.then(async (result) =>
{
return {
...result,
Expand Down

0 comments on commit 2e021ed

Please sign in to comment.