8000 GitHub - color/clr at v0.1.2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
/ clr Public archive

A command line tool for executing custom Python scripts.

License

Notifications You must be signed in to change notification settings

color/clr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clr

A command line tool for executing custom python scripts.

Getting Started

  • Install clr
$ pip install git+https://git+https://github.com/ColorGenomics/clr.git@v0.1.2
  • Create a custom command
# 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
# clrfile.py
commands = {
  'say': 'clr_commands.say',
}
  • Run your command
$ clr say:hello_world
> hello world!

Useful commands

  • Get available namespaces
$ clr help
  • Get available commands in a namespace
$ clr help namespace

About

A command line tool for executing custom Python scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

0