simple project management.
Inspired by npm run COMMAND
clone the repo
git clone https://www.github.com/donkere-vader/dog.git
Place the dogmodule somewhere logical
cd dog
mv dogmodule ~/bin
Either add an alias to your .bash_aliases
alias dog="python3 ~/bin/dogmodule"
Or make a shell script to launch the file ~/bin/dog
#!/bin/bash
python3 ~/bin/dogmodule $@
There are two options. Just one simple file. Or if you want to use some more advanced scripts to run a folder
project structure in the case of a file:
# -- snip --
dog.json
project structure in the case of a folder:
# -- snip --
dog/
dog.json
customscript1.sh # example
customscript2.sh # example
This is an example of a config file in the case of a file: dog.json
{
"commands": {
"example": "echo test"
}
}
This is an example of a config file in the case of a folder:
dog/dog.json
{
"commands": {
"example": {"file": "customscript1.sh"}
}
}
dog example
The flags for the dog command
If you want to use another file than "dog.json" or another folder than "dog" that is possible wit the --file (-f) and the --folder flags.
dog example --file other.json --folder other
Will look for the example command in other/other.json
Well if people can name there unix commands after animals: cat. Then I want to name mine after a dog. Because dogs are the best
(I know the cat from the cat command doesn't stand for the animal)