From b470f8a172adbde2ef404e5d8cf92464b0a75d34 Mon Sep 17 00:00:00 2001 From: RushiT0122 Date: Wed, 21 Sep 2022 14:56:41 +0000 Subject: [PATCH 1/4] parse dev mode argument --- singer/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/singer/utils.py b/singer/utils.py index 492e03b..04e3155 100644 --- a/singer/utils.py +++ b/singer/utils.py @@ -134,6 +134,7 @@ def parse_args(required_config_keys): -d,--discover Run in discover mode -p,--properties Properties file: DEPRECATED, please use --catalog instead --catalog Catalog file + -dev, --dev Runs the tap in dev mode Returns the parsed args object from argparse. For each argument that point to JSON files (config, state, properties), we will automatically @@ -163,6 +164,11 @@ def parse_args(required_config_keys): action='store_true', help='Do schema discovery') + parser.add_argument( + '-dev', '--dev', + action='store_true', + help='Runs tap in dev mode') + args = parser.parse_args() if args.config: setattr(args, 'config_path', args.config) From b41e05f55bf7fe34529a0b0be84d2a7b69c22e09 Mon Sep 17 00:00:00 2001 From: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Date: Tue, 27 Sep 2022 22:09:23 +0530 Subject: [PATCH 2/4] update the short flag for dev mode Replace `-dev` to `-D` --- singer/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singer/utils.py b/singer/utils.py index 04e3155..ec64e9c 100644 --- a/singer/utils.py +++ b/singer/utils.py @@ -40,7 +40,7 @@ def strptime(dtime): ... ValueError: time data '2018-01-01T00:00:00' does not match format '%Y-%m-%dT%H:%M:%SZ' - Can't parse non-UTC DTs + Can't parse non-UTC DTsx >>> strptime("2018-01-01T00:00:00-04:00") Traceback (most recent call last): ... @@ -134,7 +134,7 @@ def parse_args(required_config_keys): -d,--discover Run in discover mode -p,--properties Properties file: DEPRECATED, please use --catalog instead --catalog Catalog file - -dev, --dev Runs the tap in dev mode + -D, --dev Runs the tap in dev mode Returns the parsed args object from argparse. For each argument that point to JSON files (config, state, properties), we will automatically From 1ed70b6986ddf658bd3903b90d3970372d8d8f43 Mon Sep 17 00:00:00 2001 From: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Date: Wed, 28 Sep 2022 19:33:17 +0530 Subject: [PATCH 3/4] Updated the short flag for dev mode --- singer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singer/utils.py b/singer/utils.py index ec64e9c..5c43256 100644 --- a/singer/utils.py +++ b/singer/utils.py @@ -165,7 +165,7 @@ def parse_args(required_config_keys): help='Do schema discovery') parser.add_argument( - '-dev', '--dev', + '-D', '--dev', action='store_true', help='Runs tap in dev mode') From f32f7d140bfe0127d1339604075cb48b18c58280 Mon Sep 17 00:00:00 2001 From: RushiT0122 Date: Thu, 13 Oct 2022 18:12:00 +0000 Subject: [PATCH 4/4] - remove dev mode short flag --- singer/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/singer/utils.py b/singer/utils.py index 5c43256..48675eb 100644 --- a/singer/utils.py +++ b/singer/utils.py @@ -40,7 +40,7 @@ def strptime(dtime): ... ValueError: time data '2018-01-01T00:00:00' does not match format '%Y-%m-%dT%H:%M:%SZ' - Can't parse non-UTC DTsx + Can't parse non-UTC DTs >>> strptime("2018-01-01T00:00:00-04:00") Traceback (most recent call last): ... @@ -134,7 +134,7 @@ def parse_args(required_config_keys): -d,--discover Run in discover mode -p,--properties Properties file: DEPRECATED, please use --catalog instead --catalog Catalog file - -D, --dev Runs the tap in dev mode + --dev Runs the tap in dev mode Returns the parsed args object from argparse. For each argument that point to JSON files (config, state, properties), we will automatically @@ -165,7 +165,7 @@ def parse_args(required_config_keys): help='Do schema discovery') parser.add_argument( - '-D', '--dev', + '--dev', action='store_true', help='Runs tap in dev mode')