You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
515 B
33 lines
515 B
#!/usr/bin/node
|
|
|
|
import mysql from 'mysql2/promise'
|
|
import select, { Separator } from '@inquirer/select'
|
|
import chalk from 'chalk'
|
|
|
|
const log = console.log
|
|
|
|
/**
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
const install = await select({
|
|
message: 'Install',
|
|
choices: [{
|
|
name: 'Nginx',
|
|
value: 'nginx.js'
|
|
}, {
|
|
name: 'Mariadb',
|
|
value: 'mariadb.js'
|
|
}, {
|
|
name: 'php-fpm',
|
|
value: 'php-fpm.js'
|
|
}, {
|
|
name: 'Lets Encrypt',
|
|
value: 'lets-encrypt.js'
|
|
}]
|
|
})
|
|
|
|
log(install)
|