Skip to content

Commit

Permalink
✨ Quick fix to get prune command working again
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Jun 3, 2019
1 parent dd081bc commit 19d66bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export default class Supdock {
public async run(args: any) {
const { type, flags } = this.commands[args.command];

// Special command
// TODO find a better solution to having this hardcoded here
if (args.command === 'prune') {
this.spawn('docker', ['system', 'prune', '-f']);
return;
}

// Fire and forget the following commands in background when 'all' is passed as nonFlag
if (
args.nonFlags.all &&
Expand Down

0 comments on commit 19d66bf

Please sign in to comment.