gdritter repos shitbird / master scripts / shitbird
master

Tree @master (Download .tar.gz)

shitbird @masterraw · history · blame

#!/usr/bin/env python2

import sys
import shitbird

def usage():
    print USAGE
    sys.exit(1)

def main():
    if len(sys.argv) > 1:
        if sys.argv[1] == 'init':
            shitbird.init.main()
        elif sys.argv[1] == 'fetch':
            shitbird.fetch.main()
        elif sys.argv[1] == 'serve':
            shitbird.serve.main()
        else:
            usage()
    else:
        usage()