mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49: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()
|
'''.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user