Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function exit(name: string, status: number, msg: string = "Success!") {
if (status) {
print.error(`${name} exited with status ${status}\n`);
process.exit(status);
} else {
print.success(msg);
}
return status;
}
concurrency: 1,
}
);
await template.generate({
template: 'devctl.yaml.ejs',
target: '.devctl.yaml',
props: {
values: response,
},
});
print.info(`${print.colors.highlight('.devctl.yaml')} written.`);
print.success(``);
print.success(`Your project has been successfully bootstrapped!`);
print.info(
`Please add these files in ${print.colors.highlight('.gitignore')}`
);
print.info(
` - .devctl-current.yaml ${print.colors.muted(
`(This is your current state)`
)}`
);
print.info(
` - .devctl-docker-compose.yaml ${print.colors.muted(
`(This is your generated docker-compose file)`
)}`
);
print.info(
` - .devctl/data ${print.colors.muted(
`(This is where your databases will save state)`
const helpModule = () => {
print.info('Try to using this')
print.success('zkrn module create ')
}
const createModule = (nameModule, option) => {