INNER CODE UNIT · TypeScript
doAction
Serverless-Devs/Serverless-Devs · src/command/clean/index.ts:81
const doAction = options => {
const { all, cache, component, logs } = options;
if (all) {
cleanComponent(true);
cleanCache(true);
cleanLogs();
logger.info('The environment of Serverless Devs has been cleaned up successfully.');
return;
}
if (logs) {
cleanLogs();
return;
}
if (component) {
cleanComponent(component);
return;