Skip to content

fix: shell-hook --no-completion#3553

Merged
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
Hofer-Julian:fix/shell-hook-completion
Apr 9, 2025
Merged

fix: shell-hook --no-completion#3553
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
Hofer-Julian:fix/shell-hook-completion

Conversation

@Hofer-Julian
Copy link
Copy Markdown
Contributor

@Hofer-Julian Hofer-Julian commented Apr 9, 2025

Fixes #3549

Merging of config was faulty for pixi shell-hook, this PR fixes that. Unfortunately, this also includes a breaking change. Seems like we missed that Option<bool> leads to a CLI which requires users to type --no-completion true, which doesn't make a lot of sense. Changing to bool, changes this to --no-completion Since this is breaking anyway, I also adapt --no-completion to --no-completions.

Fixes prefix-dev#3549

Merging of config was faulty for `pixi shell-hook`, this PR fixes that.
Unfortunately, this also includes a breaking change. Seems like we missed that `Option<bool>` leads to a bit weird CLI which requires users to type `--no-completion true`, which doesn't make a lot of sense. Changing to `bool`, changes this to `--no-completion`
Since this is breaking anyway, I also adapt `--no-completion` to `--no-completions`.
@Hofer-Julian Hofer-Julian requested a review from wolfv April 9, 2025 07:54
number: 1
script:
# ZSH completions
- mkdir -p $PREFIX/share/zsh/site-functions
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure mkdir -p works on Windows.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As is, if one wants to update our test channels on windows, they will have to run it with bash

@Hofer-Julian Hofer-Julian merged commit 5f804e3 into prefix-dev:main Apr 9, 2025
35 checks passed
@Hofer-Julian Hofer-Julian deleted the fix/shell-hook-completion branch April 9, 2025 09:38
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.

--no-completion option doesn't work

2 participants