-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ Allow calling on the Default enum to get Type to pass to execute
- Loading branch information
1 parent
c2fad72
commit 4d16b40
Showing
3 changed files
with
8 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}'", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}'", | ||
}; |