doe: DOzen Executions, DO Experiments, DevOps Environment
Increasing perfomance by automating routing tasks. Wrap your routine into own simple "tab-tab" CLI
This is "self-creating" tool for calling functions structured by purposes (modules). Includes one core module "completion" and create" functions for self extending.
Main idea to wrap repeatable activities into "tab" completing 3-level CLI. Rest of args/options could be transfered into function.
doe <module> <function> [options]
$ doe create -h
doe create -m <MODULE> -f <FUNCTION> [-h]
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
zsh 5.3.1 (x86_64-debian-linux-gnu)
Linux 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 GNU/Linux
$ curl -fsSL https://doe.cloud/get | sudo sh
$ doe completion >> ~/.$(basename $SHELL)rc
$ echo "if [ -f ~/.bashrc ]; then . ~/.bashrc; fi" >> ~/.bash_profile
use .zprofile for zsh
Use $HOME/bin for local binaries, becasue persistemnt only $HOME (5GB)
$ mkdir ~/bin
$ cp /usr/local/bin/doe ~/bin/
$ sudo rm -f /usr/local/bin/doe
check for PATH="$HOME/bin:$PATH" your .profile/.zprofile if you want run doe at user level
$ exec -l $SHELL
$ doe <TAB><TAB>
$ doe create -m quick -f ubuntu
$ nano ~/.doe/modules/quick/quick.ubuntu
$ doe quick ubuntu
$ doe quick ubuntu -c destroy
$ git clone <your-git-repo> ~/.doe/modules