1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

formatting

This commit is contained in:
Kelly Brazil
2021-04-05 09:23:20 -07:00
parent 68fcb60a14
commit b5ec16c5ca
2 changed files with 0 additions and 8 deletions

View File

@ -7,12 +7,8 @@ from jinja2 import Environment, FileSystemLoader
file_loader = FileSystemLoader('templates')
env = Environment(loader=file_loader)
template = env.get_template('manpage_template')
# get parser info from jc.cli.about_jc()
# plug it into the man page jinja2 template
output = template.render(today=date.today(),
jc=jc.cli.about_jc())
# save to man/jc.1
with open('man/jc.1', 'w') as f:
f.write(output)

View File

@ -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)