Skip to content

Commit

Permalink
⚡ Allow calling on the Default enum to get Type to pass to execute
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed May 23, 2019
1 parent c2fad72 commit 4d16b40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
12 changes: 0 additions & 12 deletions src/enums/commands/default.ts

This file was deleted.

10 changes: 4 additions & 6 deletions src/enums/commands/id.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import CommandAliasses from './default';

export const IdCommands = {
ps: CommandAliasses.RUNNING_CONTAINER_IDS,
psa: CommandAliasses.ALL_CONTAINER_IDS,
images: CommandAliasses.IMAGE_IDS,
psaStopped: CommandAliasses.ALL_STOPPED_CONTAINER_IDS,
ps: "docker ps |awk '{print $1}' |tail -n +2",
psa: "docker ps -a |awk '{print $1}' |tail -n +2",
images: "docker images |awk '{print $3}' |tail -n +2",
psaStopped: "docker ps -a |grep 'Exited' |awk '{print $1}'",
};
10 changes: 4 additions & 6 deletions src/enums/commands/name.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import CommandAliasses from './default';

export const NameCommands = {
ps: CommandAliasses.RUNNING_CONTAINER_NAMES,
psa: CommandAliasses.ALL_CONTAINER_NAMES,
images: CommandAliasses.IMAGE_NAMES,
psaStopped: CommandAliasses.ALL_STOPPED_CONTAINER_NAMES,
ps: "docker ps |awk '{print $NF}' |tail -n +2",
psa: "docker ps -a |awk '{print $NF}' |tail -n +2",
images: "docker images |awk '{print $1}' |tail -n +2",
psaStopped: "docker ps -a |grep 'Exited' |awk '{print $NF}'",
};

0 comments on commit 4d16b40

Please sign in to comment.