Coverage for tarjinja/_debug.py: 67%

13 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-05 14:24 +0000

1import json 

2import sys 

3 

4import click 

5from jinja2 import Template 

6 

7 

8@click.command() 

9@click.option("--arg", default="{}") 

10@click.argument("input", type=click.File("r"), default=sys.stdin) 

11def main(input, arg): 

12 tmpl = Template(input.read()) 

13 data = json.loads(arg) 

14 click.echo(tmpl.render(**data)) 

15 

16 

17if __name__ == "__main__": 17 ↛ 18line 17 didn't jump to line 18 because the condition on line 17 was never true

18 main()