Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate argparse to click #32

Merged
merged 8 commits into from
Aug 15, 2022
Merged

Migrate argparse to click #32

merged 8 commits into from
Aug 15, 2022

Conversation

bhirsz
Copy link
Member

@bhirsz bhirsz commented Aug 12, 2022

Review after #29 and #30 are merged

Closes #7

For our current needs introducing click dependency is bit on the heavy side (as compared to built-in argparse) but it will be a lot easier to update cli and introduce configuration file support with click.

@bhirsz bhirsz requested a review from mnojek August 12, 2022 15:14
roboswag/version.py Outdated Show resolved Hide resolved
@bhirsz
Copy link
Member Author

bhirsz commented Aug 13, 2022

Changed the cli interface a bit - now to generate Python libraries user needs to use generate command:

roboswag generate -s <>

Such split early on will allow us to design better cli experience in long term - when there will be more possible commands and some of them will have required options.

@bhirsz bhirsz merged commit 1cdf72f into main Aug 15, 2022
@bhirsz bhirsz deleted the cli_click branch August 15, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command line interface
1 participant