|
|
@ -1,4 +1,5 @@ |
|
|
|
#!/usr/bin/env python3 |
|
|
|
import os |
|
|
|
import sys |
|
|
|
import click |
|
|
|
import ciclostile |
|
|
@ -34,9 +35,12 @@ def index(template, output, folder): |
|
|
|
|
|
|
|
@cli.command() |
|
|
|
@click.option("-p", "--port", type=int, default=12345) |
|
|
|
@click.argument("post_dir", default=".") |
|
|
|
def app(port, post_dir): |
|
|
|
webapp.run(port=port) |
|
|
|
@click.argument("input_dir", default=os.getcwd(), type=click.Path(exists=True, |
|
|
|
file_okay=False)) |
|
|
|
def app(port, input_dir): |
|
|
|
print({'port': port, |
|
|
|
'input': input_dir}) |
|
|
|
# webapp.run(port=port) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|