-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
35 lines (29 loc) · 623 Bytes
/
run.py
File metadata and controls
35 lines (29 loc) · 623 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
import click
import logging
from controller.controller import Controller
# Configuraciones
sh = logging.StreamHandler()
logging.basicConfig(
format='%(asctime)s |%(name)s|%(levelname)s|%(message)s',
level=logging.DEBUG,
handlers=[sh]
)
@click.group()
def cli():
"""Metodo cli."""
pass
@click.command()
@click.option(
'--output_name',
default="digital_art",
help='Name of the output images',
required=False
)
def main(output_name):
"""Main function"""
Controller.worker(output_name)
os._exit(os.EX_OK)
cli.add_command(main)
if __name__ == '__main__':
cli()