A plugin framework for bash!
cd ~
git clone https://github.com/Ccode-lang/drumbash
cd drumbash
chmod +x drum.sh
Put the .drum plugins in the plugins folder and list there names in the drumrc file.
make sure you end the drumrc in a newline!!!!!! example plugins content:
plugins
__
|
|_test.drum
example drumrc content:
test
After installing plugins run this in ~/drumbash:
./drum.sh
This will load the plugin files listed in drumrc then run a the modded version of bash.
api is in very early stages. It may have dramatic changes at any time!!!!
To import the api in drum bash you need to do a few things first.
- instead of naming the file whatever.py name it whatever.drum
- add the below lines of code to the file
#!/usr/bin/env python3
import os
import sys
home = os.path.expanduser('~')
mymodule_dir = os.path.join( home, 'drumbash', 'api')
sys.path.append( mymodule_dir )
import api
API docs are at https://github.com/Ccode-lang/drumbash/wiki/py-api-docs.
Now you can call the api with api.command_you_want_to_use().
Template at https://github.com/Ccode-lang/pydrumplugin.