A command line tool for executing custom python scripts.
- Install clr
$ pip install git+https://github.com/ColorGenomics/clr.git@v0.1.2
- Create a custom command
# color/src/clr_commands/say.py
class Commands(object):
descr = "say commands"
def cmd_hello_world(self):
print "hello world!"
COMMANDS = Commands()
- Create clrfile.py in your root directory
# color/clrfile.py
commands = {
'say': 'clr_commands.say',
}
- Run your command
$ clr say:hello_world
> hello world!
- Get available namespaces
$ clr help
- Get available commands in a namespace
$ clr help namespace