Fix sort
This commit is contained in:
parent
9154039644
commit
9f6293872a
5 changed files with 58 additions and 8 deletions
12
cli
12
cli
|
@ -8,8 +8,9 @@ import importer
|
|||
import serve
|
||||
import autosort
|
||||
import validate
|
||||
# import info
|
||||
# import report
|
||||
import info
|
||||
import sort
|
||||
#import report
|
||||
|
||||
from helper import build_database_filename, create_dirs, build_rules_filename
|
||||
from sqlalchemy import create_engine
|
||||
|
@ -27,6 +28,8 @@ def cli():
|
|||
@cli.command(name="init")
|
||||
@click.argument("profile_name", required=True)
|
||||
def init(profile_name):
|
||||
create_dirs()
|
||||
|
||||
db_path = build_database_filename(profile_name)
|
||||
rule_path = build_rules_filename(profile_name)
|
||||
|
||||
|
@ -44,12 +47,11 @@ def init(profile_name):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_dirs()
|
||||
# cli.add_command(sort.command)
|
||||
cli.add_command(sort.command)
|
||||
cli.add_command(importer.command)
|
||||
cli.add_command(serve.command)
|
||||
cli.add_command(autosort.command)
|
||||
cli.add_command(validate.command)
|
||||
# cli.add_command(info.command)
|
||||
cli.add_command(info.command)
|
||||
# cli.add_command(report.command)
|
||||
cli()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue