feat(cli): Add Docker command for cleaning up Docker system and extend deprecation command for multiple registries

This commit is contained in:
2025-01-08 22:31:11 +01:00
parent 16ea9bb8bd
commit 6b3d4d1ecf
6 changed files with 47 additions and 5 deletions

12
ts/mod_docker/index.ts Normal file
View File

@ -0,0 +1,12 @@
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;
}
};

View File

@ -0,0 +1,4 @@
export * from '../plugins.js';
import * as smartshell from '@push.rocks/smartshell';
export { smartshell };