supybot-plugin-create: options.desc substitution for README.md

This commit is contained in:
Julian Paul Glass 2014-11-25 12:01:42 +00:00
parent 09c01e0467
commit 191b1b2d06

View File

@ -203,7 +203,9 @@ class %sTestCase(PluginTestCase):
'''.lstrip() '''.lstrip()
readmeTemplate = ''' readmeTemplate = '''
Insert a description of your plugin here, with any notes, etc. about %s
Insert a more detailed description of your plugin here, with any notes, etc. about
using it. using it.
'''.lstrip() '''.lstrip()
@ -295,7 +297,7 @@ def main():
name)) name))
writeFile('__init__.py', __init__Template % (copyright, name, options.desc)) writeFile('__init__.py', __init__Template % (copyright, name, options.desc))
writeFile('test.py', testTemplate % (copyright, name, name)) writeFile('test.py', testTemplate % (copyright, name, name))
writeFile('README.md', readmeTemplate) writeFile('README.md', readmeTemplate % (options.desc,))
pathname = os.path.join(pathname, 'local') pathname = os.path.join(pathname, 'local')
os.mkdir(pathname) os.mkdir(pathname)