view makeitso/python_package/{{package}}/template.py @ 95:e74baa8e6df4

fix CLI interface a bit....write a test for it
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 11 Jan 2011 09:06:25 -0800
parents c434b83ab600
children ad5fd3eb6674
line wrap: on
line source

#!/usr/bin/env python

"""
{{project}} template for makeitso
"""

import sys
from cli import MakeItSoCLI
from optparse import OptionParser
from template import MakeItSoTemplate

class {{project}}Template(MakeItSoTemplate):
  """
  {{project}} template
  """
  name = '{{project}}'
  templates = ['template']
  look = True

class TemplateCLI(MakeItSoCLI):
  """
  CLI driver for the {{project}} template
  """

def main(args=sys.argv[:]):
  cli = TemplateCLI()
  cli(args)
  
if __name__ == '__main__':
  main()