12 lines
318 B
TypeScript
12 lines
318 B
TypeScript
import * as plugins from './mod.plugins.js';
|
|
|
|
export const run = async (argvArg) => {
|
|
const smartshellInstance = new plugins.smartshell.Smartshell({
|
|
executor: 'bash',
|
|
});
|
|
switch (argvArg._[1]) {
|
|
case 'prune':
|
|
await smartshellInstance.exec(`docker system prune -a -f --volumes`);
|
|
break;
|
|
}
|
|
}; |