This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/md_pdf/build/cli.py

10 lines
402 B
Python
Raw Normal View History

2017-03-27 09:17:49 +01:00
import click
2017-03-28 09:04:02 +01:00
from md_pdf.build.md import read_files
2017-03-27 09:17:49 +01:00
@click.command('build', short_help="Build document")
2017-03-28 09:04:02 +01:00
@click.argument('in_files', type=click.Path(dir_okay=False, resolve_path=True, writable=True), nargs=-1)
@click.option('--output', '-o', type=click.Path(file_okay=False, resolve_path=True, writable=True), default='out/')
def cli(in_files, output):
data = read_files(in_files)
print(data)