2022-06-23 15:17:18 +02:00
|
|
|
import { banner } from './banner.mjs'
|
2022-06-20 18:31:22 +02:00
|
|
|
import {
|
|
|
|
checkNodeVersion,
|
|
|
|
getChoices,
|
|
|
|
createEnvironment,
|
|
|
|
} from './utils.mjs'
|
|
|
|
|
|
|
|
|
|
|
|
export const cli = async () => {
|
|
|
|
|
|
|
|
// Make it pretty
|
|
|
|
console.log(banner+"\n")
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|