Skip to content

Commit

Permalink
Merge pull request #17 from Qualytics/sc-15851/library-enhancement-tyler
Browse files Browse the repository at this point in the history
Sc 15851/library enhancement tyler
  • Loading branch information
shindiogawa authored Mar 11, 2024
2 parents f5b7891 + b95e32f commit 6efb0ac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.13
current_version = 0.1.14
commit = True
tag = True
tag_name = {new_version}
Expand Down
26 changes: 20 additions & 6 deletions qualytics/qualytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from typing_extensions import Annotated
from croniter import croniter

__version__ = "0.1.13"
__version__ = "0.1.14"

app = typer.Typer()

Expand All @@ -35,9 +35,9 @@
help="Command to trigger a datastores operation. (catalog, profile, scan)",
)

check_status_app = typer.Typer(
name="check_status",
help="Checks the status of a operation based on the operation ID",
check_operation_app = typer.Typer(
name="operation",
help="Allows the user to view information about an operation such as it's status",
)

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
Expand Down Expand Up @@ -883,6 +883,20 @@ def checks_import(
distinct_file_content(BASE_PATH + error_log_path)


# @checks_app.command("import_excel")
# def import_excel(
# datastore: str = typer.Option(
# ...,
# "--datastore",
# help="Comma-separated list of Datastore IDs or array-like format",
# ),
# input_file: str = typer.Option(
# BASE_PATH + "/data_checks.json", "--input", help="Input file path"
# ),
# ):
# x = 5


@schedule_app.command("export-metadata")
def schedule(
crontab_expression: str = typer.Option(
Expand Down Expand Up @@ -1267,7 +1281,7 @@ def scan_operation(
)


@check_status_app.command("operation", help="checks the status of a operation")
@check_operation_app.command("check_status", help="checks the status of a operation")
def operation_status(
ids: str = typer.Option(
...,
Expand All @@ -1290,7 +1304,7 @@ def operation_status(
# Add the trigger operation as a subcommand to the main app
app.add_typer(run_operation_app, name="run")

app.add_typer(check_status_app, name="check_status")
app.add_typer(check_operation_app, name="operation")

if __name__ == "__main__":
app()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"GitHub": "https://github.com/Qualytics/qualytics-cli",
"Userguide": "https://qualytics.github.io/userguide/",
}
__version__ = "0.1.13"
__version__ = "0.1.14"
setup(
name="qualytics-cli",
packages=find_packages(),
Expand Down

0 comments on commit 6efb0ac

Please sign in to comment.