13 lines
		
	
	
		
			319 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			319 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;
 | 
						|
  }
 | 
						|
};
 |