From b37607dc9e0c22eeed4ea9da96dee0b1c57c5137 Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Thu, 16 May 2024 13:25:19 -0400 Subject: [PATCH 1/5] modify main cli --- src/avalon/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/avalon/main.py b/src/avalon/main.py index 014e22f..d510878 100644 --- a/src/avalon/main.py +++ b/src/avalon/main.py @@ -38,7 +38,10 @@ def main(args): local_path=args.local_path, remote_path=args.remote_path, branch=env_args['lakefs_branch'], - lake_fs_client=client + lake_fs_client=client, + changes_only=args.changed_files_only, + repo=args.repository, + ) @@ -49,9 +52,10 @@ def cli(): sub_parsers = parser.add_subparsers(help="Sub commands", dest="sub_command") parser_get_file = sub_parsers.add_parser("get", help="Gets file from Lakefs repo", ) - parser_get_file.add_argument("-r", "--remote-path", help="Remote file / dir path") + parser_get_file.add_argument("-p", "--remote-path", help="Remote file / dir path") parser_get_file.add_argument("-l", "--local-path", help="Local output dir") parser_get_file.add_argument("-c", "--changed-files-only", help="To get changed files only", default=False) + parser_get_file.add_argument("-r", "--repository", help="repository to get data from") parser_put_file = sub_parsers.add_parser("put", help="Puts file to Lakefs repo") parser_put_file.add_argument("-l", "--local-path", help="Local dir to push") From 95be28c2033caacdee64f83a021bae1dbc93953c Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Thu, 16 May 2024 13:32:31 -0400 Subject: [PATCH 2/5] repo branch --- src/avalon/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/avalon/main.py b/src/avalon/main.py index d510878..ee18273 100644 --- a/src/avalon/main.py +++ b/src/avalon/main.py @@ -37,7 +37,7 @@ def main(args): get_files( local_path=args.local_path, remote_path=args.remote_path, - branch=env_args['lakefs_branch'], + branch=args.branch, lake_fs_client=client, changes_only=args.changed_files_only, repo=args.repository, @@ -56,6 +56,7 @@ def cli(): parser_get_file.add_argument("-l", "--local-path", help="Local output dir") parser_get_file.add_argument("-c", "--changed-files-only", help="To get changed files only", default=False) parser_get_file.add_argument("-r", "--repository", help="repository to get data from") + parse_args,add_argument("-b", "--branch", help="repository branch") parser_put_file = sub_parsers.add_parser("put", help="Puts file to Lakefs repo") parser_put_file.add_argument("-l", "--local-path", help="Local dir to push") From 3a116316ff16556e6eca2dfa4dfb1d88b633831c Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Thu, 16 May 2024 13:33:48 -0400 Subject: [PATCH 3/5] repo branch --- src/avalon/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avalon/main.py b/src/avalon/main.py index ee18273..2075980 100644 --- a/src/avalon/main.py +++ b/src/avalon/main.py @@ -56,7 +56,7 @@ def cli(): parser_get_file.add_argument("-l", "--local-path", help="Local output dir") parser_get_file.add_argument("-c", "--changed-files-only", help="To get changed files only", default=False) parser_get_file.add_argument("-r", "--repository", help="repository to get data from") - parse_args,add_argument("-b", "--branch", help="repository branch") + parse_args.add_argument("-b", "--branch", help="repository branch") parser_put_file = sub_parsers.add_parser("put", help="Puts file to Lakefs repo") parser_put_file.add_argument("-l", "--local-path", help="Local dir to push") From cf55149bca7385c3b266f1ef7e727f674137ef3a Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Thu, 16 May 2024 13:34:48 -0400 Subject: [PATCH 4/5] branch args --- src/avalon/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avalon/main.py b/src/avalon/main.py index 2075980..1b2ba52 100644 --- a/src/avalon/main.py +++ b/src/avalon/main.py @@ -56,7 +56,7 @@ def cli(): parser_get_file.add_argument("-l", "--local-path", help="Local output dir") parser_get_file.add_argument("-c", "--changed-files-only", help="To get changed files only", default=False) parser_get_file.add_argument("-r", "--repository", help="repository to get data from") - parse_args.add_argument("-b", "--branch", help="repository branch") + parser_get_file.add_argument("-b", "--branch", help="repository branch") parser_put_file = sub_parsers.add_parser("put", help="Puts file to Lakefs repo") parser_put_file.add_argument("-l", "--local-path", help="Local dir to push") From 6819aa13717a9cac31df0b08772b36fab2604593 Mon Sep 17 00:00:00 2001 From: YaphetKG <45075777+YaphetKG@users.noreply.github.com> Date: Thu, 16 May 2024 13:45:33 -0400 Subject: [PATCH 5/5] bump version --- src/avalon/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avalon/__init__.py b/src/avalon/__init__.py index 97123c1..1be8fc6 100644 --- a/src/avalon/__init__.py +++ b/src/avalon/__init__.py @@ -1 +1 @@ -__version__="1.0.0" +__version__="1.0.2"