Mercurial > hg > TextShaper
view textshaper/template.py @ 4:26bb5e99f76c
textshaper/main.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 24 Sep 2013 16:43:06 -0700 |
parents | 53cfd6e1ad0f |
children |
line wrap: on
line source
#!/usr/bin/env python """ TextShaper template for makeitso """ import sys from cli import MakeItSoCLI from optparse import OptionParser from template import MakeItSoTemplate class TextShaperTemplate(MakeItSoTemplate): """ TextShaper template """ name = 'TextShaper' templates = ['template'] look = True class TemplateCLI(MakeItSoCLI): """ CLI driver for the TextShaper template """ def main(args=sys.argv[:]): cli = TemplateCLI() cli(*args) if __name__ == '__main__': main()