Skip to content

Commit

Permalink
Merge pull request #8 from helxplatform/develop
Browse files Browse the repository at this point in the history
fix cli
  • Loading branch information
YaphetKG authored May 16, 2024
2 parents 6b366a0 + 6819aa1 commit 33cce37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/avalon/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="1.0.0"
__version__="1.0.2"
11 changes: 8 additions & 3 deletions src/avalon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ def main(args):
get_files(
local_path=args.local_path,
remote_path=args.remote_path,
branch=env_args['lakefs_branch'],
lake_fs_client=client
branch=args.branch,
lake_fs_client=client,
changes_only=args.changed_files_only,
repo=args.repository,

)


Expand All @@ -49,9 +52,11 @@ 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_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")
Expand Down

0 comments on commit 33cce37

Please sign in to comment.