Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
char: 'p',
description: 'Type of Kubernetes platform. Valid values are \"minikube\", \"minishift\", \"k8s (for kubernetes)\", \"openshift\", \"crc (for CodeReady Containers)\", \"microk8s\".',
options: ['minikube', 'minishift', 'k8s', 'openshift', 'microk8s', 'docker-desktop', 'crc'],
}),
chenamespace: cheNamespace,
templates: string({
char: 't',
description: 'Path to the templates folder',
default: Update.getTemplatesDir(),
env: 'CHE_TEMPLATES_FOLDER'
}),
'che-operator-image': string({
description: 'Container image of the operator. This parameter is used only when the installer is the operator',
default: DEFAULT_CHE_OPERATOR_IMAGE
}),
'skip-version-check': boolean({
description: 'Skip user confirmation on version check',
default: false
}),
'deployment-name': cheDeployment,
'listr-renderer': listrRenderer,
help: flags.help({ char: 'h' }),
}
static getTemplatesDir(): string {
// return local templates folder if present
const TEMPLATES = 'templates'
const templatesDir = path.resolve(TEMPLATES)
const exists = fs.pathExistsSync(templatesDir)
if (exists) {
return TEMPLATES
}