1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-13 10:49:45 +08:00

feat: update

This commit is contained in:
chufan
2023-09-05 19:42:45 +08:00
parent d94f30aa20
commit 0842ce3276
5 changed files with 180 additions and 14 deletions

View File

@@ -1,7 +1,40 @@
#!/usr/bin/env node
const {execShell} = require("./.exec");
// const {execShell} = require("./.exec");
(async ()=>{
await execShell(['pnpm build','pnpm build:proxy'])
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',
'Nougat',
'Orange',
'Pear',
'Pineapple',
'Raspberry',
'Strawberry',
'Vanilla',
'Watermelon',
'Wintergreen'
]
});
prompt.run()
.then(answer => console.log('Answer:', answer))
.catch(console.error);
})()