2022-11-29 16:10:19 -06:00
|
|
|
// import { banner } from './banner.mjs'
|
|
|
|
import { checkNodeVersion, getChoices, createEnvironment } from './utils.mjs'
|
2022-06-20 18:31:22 +02:00
|
|
|
|
|
|
|
export const cli = async () => {
|
|
|
|
// Make it pretty
|
2022-11-29 16:10:19 -06:00
|
|
|
// console.log(banner+"\n")
|
2022-06-20 18:31:22 +02:00
|
|
|
|
|
|
|
// Make sure we have a valid NodeJS version
|
|
|
|
checkNodeVersion()
|
|
|
|
|
|
|
|
// Get user input
|
|
|
|
const choices = await getChoices()
|
|
|
|
|
|
|
|
// Create environment from template
|
2022-07-12 20:09:17 +02:00
|
|
|
createEnvironment(choices)
|
2022-06-20 18:31:22 +02:00
|
|
|
}
|