Skip to content

Commit 92a76e2

Browse files
Op specific debug option names normalized
1 parent 8fbf731 commit 92a76e2

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/sequor/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This is the single source of truth for the version number
2-
__version__ = "1.0.0"
2+
__version__ = "1.0.1"

src/sequor/cli.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ def run(
111111
op_id: str = typer.Option(None, "--op-id", help="ID of the operation to run"),
112112

113113
# http_request op specific options
114-
debug_foreach_record: str = typer.Option(None, "--debug-foreach-record", help="Run with a test for_each record specified as JSON object (or records if batching is enabled as JSON array). The record(s) should match the structure expected by the operation. Example: --debug-test-record='{\"email\":\"test@example.com\"}'"),
115-
debug_request_preview_trace: bool = typer.Option(False, "--debug-request-preview-trace", help="Run only HTTP request part and show HTTP request trace", is_flag=True),
116-
debug_request_preview_pretty: bool = typer.Option(False, "--debug-request-preview-pretty", help="Run only HTTP request part and show pretty trace", is_flag=True),
117-
debug_response_parser_preview: bool = typer.Option(False, "--debug-response-parser-preview", help="Show parser result without applying it", is_flag=True),
114+
debug_foreach_record: str = typer.Option(None, "--debug-httprequest-foreach-test-record", help="Run with a test for_each record specified as JSON object (or records if batching is enabled as JSON array). The record(s) should match the structure expected by the operation. Example: --debug-test-record='{\"email\":\"test@example.com\"}'"),
115+
debug_request_preview_trace: bool = typer.Option(False, "--debug-httprequest-preview-trace", help="Run only HTTP request part and show HTTP request trace", is_flag=True),
116+
debug_request_preview_pretty: bool = typer.Option(False, "--debug-httprequest-preview-pretty", help="Run only HTTP request part and show pretty trace", is_flag=True),
117+
debug_response_parser_preview: bool = typer.Option(False, "--debug-httprequest-response-parser-preview", help="Show parser result without applying it", is_flag=True),
118118
):
119119
logger = logging.getLogger("sequor.cli")
120120
try:
@@ -211,14 +211,15 @@ def main():
211211

212212

213213
# sequor-integrations tests
214-
sys.argv = ["cli.py", "run", "0_run_tests", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env", "dev", "--home-dir", "/Users/maximgrinev/.sequor-dev"]
214+
# sys.argv = ["cli.py", "run", "0_run_tests", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env", "dev", "--home-dir", "/Users/maximgrinev/.sequor-dev"]
215215

216216

217217
# Utility
218218
# sys.argv = ["cli.py", "run", "bigcommerce_delete_all_customers", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env", "dev", "--home-dir", "/Users/maximgrinev/.sequor-dev"]
219219
# sys.argv = ["cli.py", "run", "bigcommerce_create_customers", "--op-id", "create_customers", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env-dir", "/Users/maximgrinev/sequor-env"]
220-
# sys.argv = ["cli.py", "run", "bigcommerce_fetch_customers_simple", "--op-id", "get_customers", "--debug-request-preview-trace", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env", "dev", "--home-dir", "/Users/maximgrinev/.sequor-dev"]
221-
# sys.argv = ["cli.py", "run", "bigcommerce_create_customers", "--op-id", "create_customers", "--debug-foreach-record", '{"id":"1", "first_name":"Bob", "last_name": "brown", "email":"bob@brown1.net"}', "--debug-request-preview-trace", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env-dir", "/Users/maximgrinev/sequor-env"]
220+
sys.argv = ["cli.py", "run", "github_repo_health", "--op-id", "get_repos", "--debug-httprequest-preview-trace", "--stacktrace",
221+
"--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env", "dev", "--home-dir", "/Users/maximgrinev/.sequor-dev"]
222+
# sys.argv = ["cli.py", "run", "bigcommerce_create_customers", "--op-id", "create_customers", "--debug-httprequest-foreach-test-record", '{"id":"1", "first_name":"Bob", "last_name": "brown", "email":"bob@brown1.net"}', "--debug-httprequest-preview-trace", "--stacktrace", "--project-dir", "/Users/maximgrinev/myprogs/sequor-integrations", "--env-dir", "/Users/maximgrinev/sequor-env"]
222223

223224

224225

0 commit comments

Comments
 (0)