This PR converts the CLI parsing in the airbyte-cdk/python/airbyte_cdk/entrypoint.py file from argparse to Click. Click is a more expressive and easier-to-use library for building command-line interfaces in Python. The parse_args method in the AirbyteEntrypoint class has been refactored to use Click decorators instead of argparse arguments. The run method has also been updated to handle the new Click context object. Additionally, the airbyte-cdk/python/setup.py file has been updated to include Click as a dependency.
Summary of Changes
Refactored the parse_args method in the AirbyteEntrypoint class to use Click decorators instead of argparse arguments.
Updated the run method in the AirbyteEntrypoint class to handle the new Click context object.
Updated the airbyte-cdk/python/setup.py file to include Click as a dependency.
Updated the unit tests in the octavia-cli/unit_tests/test_entrypoint.py file to reflect the changes made to the AirbyteEntrypoint class.
Please review and merge this PR. Thank you!
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/convert-argparse-to-click_1
To make tweaks to this pull request, leave a comment below or in the code.
Description
This PR converts the CLI parsing in the
airbyte-cdk/python/airbyte_cdk/entrypoint.py
file from argparse to Click. Click is a more expressive and easier-to-use library for building command-line interfaces in Python. Theparse_args
method in theAirbyteEntrypoint
class has been refactored to use Click decorators instead of argparse arguments. Therun
method has also been updated to handle the new Click context object. Additionally, theairbyte-cdk/python/setup.py
file has been updated to include Click as a dependency.Summary of Changes
parse_args
method in theAirbyteEntrypoint
class to use Click decorators instead of argparse arguments.run
method in theAirbyteEntrypoint
class to handle the new Click context object.airbyte-cdk/python/setup.py
file to include Click as a dependency.octavia-cli/unit_tests/test_entrypoint.py
file to reflect the changes made to theAirbyteEntrypoint
class.Please review and merge this PR. Thank you!
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
To make tweaks to this pull request, leave a comment below or in the code.