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

Bump Clap 3 -> 4 #991

Merged
merged 9 commits into from
Jul 3, 2023
Merged

Bump Clap 3 -> 4 #991

merged 9 commits into from
Jul 3, 2023

Conversation

amitdahan
Copy link
Collaborator

@amitdahan amitdahan commented Jul 2, 2023

Based on #823, and adjusted breaking-changes.
Mostly drop possible_values in favor of using enums deriving ValueEnum.

@changeset-bot
Copy link

changeset-bot bot commented Jul 2, 2023

🦋 Changeset detected

Latest commit: e37dd32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
fnm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Owner

@Schniz Schniz left a comment

Choose a reason for hiding this comment

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

:lgtm: overall, let's fix that all value and ship? :lfg-intense:

src/commands/env.rs Show resolved Hide resolved
src/log_level.rs Show resolved Hide resolved
"fish" => Ok(Box::from(super::fish::Fish)),
"powershell" => Ok(Box::from(super::powershell::PowerShell)),
shell_type => Err(format!("I don't know the shell type of {shell_type:?}",)),
impl From<Shells> for Box<dyn Shell> {
Copy link
Owner

Choose a reason for hiding this comment

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

This is a first good step, in a later PR we can remove Box<dyn Shell> entirely by implementing Shell for Shells and forward the calls

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So kinda like this?
7781b5d

src/version_file_strategy.rs Show resolved Hide resolved
@Schniz Schniz merged commit b19eb29 into Schniz:master Jul 3, 2023
15 of 16 checks passed
@github-actions github-actions bot mentioned this pull request Jul 3, 2023
@amitdahan amitdahan deleted the bump-clap branch July 4, 2023 06:17
quixoten added a commit to quixoten/fnm that referenced this pull request Jul 15, 2023
as far as i can tell, this was broken by the clap upgrade (Schniz#991).
quixoten added a commit to quixoten/fnm that referenced this pull request Aug 3, 2023
as far as i can tell, this was broken by the clap upgrade (Schniz#991).
Schniz added a commit that referenced this pull request Aug 15, 2023
* fix(#1006): panic on completions

as far as i can tell, this was broken by the clap upgrade (#991).

* fix: add smoke test for completions

* skip test on windows

* Create dull-bottles-try.md

---------

Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
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.

2 participants