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

chore: migrate from structopt to clap #127

Merged
merged 7 commits into from
May 20, 2024
Merged

chore: migrate from structopt to clap #127

merged 7 commits into from
May 20, 2024

Conversation

ryota-sakamoto
Copy link
Contributor

@ryota-sakamoto ryota-sakamoto commented May 18, 2023

Issue #, if available:

close #109

Description of changes:

structopt is now in maintenance mode so we need to migrate into clap.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ryota-sakamoto ryota-sakamoto force-pushed the migrate-to-clap branch 3 times, most recently from 90e9bfb to 0bb97e9 Compare May 19, 2023 15:17
@ryota-sakamoto ryota-sakamoto force-pushed the migrate-to-clap branch 12 times, most recently from e70c1be to 39887eb Compare May 29, 2023 15:07
@StoneDot StoneDot added the maintenance Need work to follow eco-system changes label Mar 1, 2024
@StoneDot
Copy link
Contributor

This task is blocked by #143.

@ryota-sakamoto ryota-sakamoto force-pushed the migrate-to-clap branch 6 times, most recently from a326a89 to d9d6815 Compare May 17, 2024 15:43
Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
@ryota-sakamoto ryota-sakamoto force-pushed the migrate-to-clap branch 2 times, most recently from 6e59e24 to 5ee5ec6 Compare May 20, 2024 00:28
We need to specify verbatim_doc_comment to show multiple line doc comments for CLI properly.

Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
@ryota-sakamoto ryota-sakamoto marked this pull request as ready for review May 20, 2024 00:53
@ryota-sakamoto ryota-sakamoto requested review from a team as code owners May 20, 2024 00:53
@ryota-sakamoto ryota-sakamoto changed the title feat: migrate from structopt to clap chore: migrate from structopt to clap May 20, 2024
Copy link
Contributor

@StoneDot StoneDot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for tackling this hard task. I left a few comments. Could you please look them?

src/cmd.rs Outdated Show resolved Hide resolved
src/cmd.rs Outdated Show resolved Hide resolved
Comment on lines +57 to 58
#[clap(long)]
pub third_party_attribution: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the current implementation do not cause any error even if we execute cargo run -- --shell --third-party-attribution ls. I think the current implementation can be improved using ArgGroup. Should we scope this change into this PR or address in another pull request?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address this point in another pull request.

Signed-off-by: Ryota Sakamoto <skmt@amazon.com>
Copy link
Contributor

@StoneDot StoneDot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for checking my comment. LGTM

@ryota-sakamoto ryota-sakamoto merged commit ba5de0a into main May 20, 2024
4 of 5 checks passed
@ryota-sakamoto ryota-sakamoto deleted the migrate-to-clap branch May 20, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Need work to follow eco-system changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove structopt dependency and use latest clap instead
2 participants