feat: 脚手架基本ok
This commit is contained in:
11
bin/builders/common.ts
Normal file
11
bin/builders/common.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import prompts from 'prompts';
|
||||
|
||||
export async function promptText(message: string, initial?: string) {
|
||||
const response = await prompts({
|
||||
type: 'text',
|
||||
name: 'content',
|
||||
message,
|
||||
initial,
|
||||
});
|
||||
return response.content;
|
||||
}
|
||||
Reference in New Issue
Block a user