This is a small project that started as a few aliases, and then grew into a small framework.
Extendable docker cli wrapper. Allows the user to easily add new functionality.
Any command that doesn't exist in dkr automatically gets delegated to docker.
git clone [email protected]:JoelJ/dkr.git
cd dkr
./installThere are options to override default locations, etc in the installer. To see what they are, run:
./install --helpFor example, you can override where the dkr bin is installed by running:
./install --bin-file /bin/dkrIf you run only dkr help will be printed out, including a list of all the extensions.
Any non-executable file in $DKR_HOME will be sourced. $DKR_HOME by default is ~/.dkr.
How commands are called:
- Any bash function matching the pattern:
__dkr-{name}will be added as a new function of dkr and can be called withdkr {name}. $DKR_HOMEis added to thePATHso any executable files in$DKR_HOMEmatching the naming conventions will also be included.- If
dkr {name}is called and__dkr-namedoes not exist, thendocker {name}will be called instead. - The
summarysare chosen by any function/executable named__dkr-{name}-summary_ - The
helpsare chosen by any function/executable named__dkr-{name}-help_