Skip to content

Bump Clap 3 -> 4#991

Merged
Schniz merged 9 commits intoSchniz:masterfrom
amitdahan:bump-clap
Jul 3, 2023
Merged

Bump Clap 3 -> 4#991
Schniz merged 9 commits intoSchniz:masterfrom
amitdahan:bump-clap

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

@amitdahan amitdahan marked this pull request as ready for review July 2, 2023 19:08
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:

"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

@Schniz Schniz merged commit b19eb29 into Schniz:master Jul 3, 2023
@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