mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +01:00
supybot-plugin-create: options.desc substitution for README.md
This commit is contained in:
parent
09c01e0467
commit
191b1b2d06
@ -203,7 +203,9 @@ class %sTestCase(PluginTestCase):
|
||||
'''.lstrip()
|
||||
|
||||
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.
|
||||
'''.lstrip()
|
||||
|
||||
@ -295,7 +297,7 @@ def main():
|
||||
name))
|
||||
writeFile('__init__.py', __init__Template % (copyright, name, options.desc))
|
||||
writeFile('test.py', testTemplate % (copyright, name, name))
|
||||
writeFile('README.md', readmeTemplate)
|
||||
writeFile('README.md', readmeTemplate % (options.desc,))
|
||||
|
||||
pathname = os.path.join(pathname, 'local')
|
||||
os.mkdir(pathname)
|
||||
|
Loading…
Reference in New Issue
Block a user