mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
formatting
This commit is contained in:
@ -6,11 +6,7 @@ from jinja2 import Environment, FileSystemLoader
|
||||
file_loader = FileSystemLoader('templates')
|
||||
env = Environment(loader=file_loader)
|
||||
template = env.get_template('readme_template')
|
||||
|
||||
# get parser info from jc.cli.about_jc()
|
||||
# plug it into the man page jinja2 template
|
||||
output = template.render(jc=jc.cli.about_jc())
|
||||
|
||||
# save to man/jc.1
|
||||
with open('README.md', 'w') as f:
|
||||
f.write(output)
|
||||
|
Reference in New Issue
Block a user