mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-14 10:20:29 +08:00
style: 格式化脚本
This commit is contained in:
50
scripts/test
50
scripts/test
@@ -6,30 +6,30 @@
|
||||
*/
|
||||
// const {execShell} = require("./.exec");
|
||||
|
||||
(async ()=>{
|
||||
const { AutoComplete } = require('enquirer');
|
||||
(async() => {
|
||||
const { AutoComplete } = require('enquirer')
|
||||
|
||||
const prompt = new AutoComplete({
|
||||
name: 'flavor',
|
||||
message: 'Pick your favorite flavor',
|
||||
limit: 10,
|
||||
initial: 2,
|
||||
choices: [
|
||||
'Almond',
|
||||
'Apple',
|
||||
'Banana',
|
||||
'Blackberry',
|
||||
'Blueberry',
|
||||
'Cherry',
|
||||
'Chocolate',
|
||||
'Cinnamon',
|
||||
'Coconut',
|
||||
'Cranberry',
|
||||
'Grape',
|
||||
]
|
||||
});
|
||||
const prompt = new AutoComplete({
|
||||
name: 'flavor',
|
||||
message: 'Pick your favorite flavor',
|
||||
limit: 10,
|
||||
initial: 2,
|
||||
choices: [
|
||||
'Almond',
|
||||
'Apple',
|
||||
'Banana',
|
||||
'Blackberry',
|
||||
'Blueberry',
|
||||
'Cherry',
|
||||
'Chocolate',
|
||||
'Cinnamon',
|
||||
'Coconut',
|
||||
'Cranberry',
|
||||
'Grape'
|
||||
]
|
||||
})
|
||||
|
||||
prompt.run()
|
||||
.then(answer => console.log('Answer:', answer))
|
||||
.catch(console.error);
|
||||
})()
|
||||
prompt.run()
|
||||
.then(answer => console.log('Answer:', answer))
|
||||
.catch(console.error)
|
||||
})()
|
||||
|
||||
Reference in New Issue
Block a user