Skip to content

Consider carapace to support completions in other shells#99

Merged
water-sucks merged 8 commits intonix-community:mainfrom
nuttycream:main
Aug 5, 2025
Merged

Consider carapace to support completions in other shells#99
water-sucks merged 8 commits intonix-community:mainfrom
nuttycream:main

Conversation

@nuttycream
Copy link
Copy Markdown
Contributor

carapace is a completion generator for cobra.

This adds support for more shells including nushell with a relatively simple addition: carapace.Gen(cmd.Root()) and seems to be enough for full completion support including flags.

@nuttycream
Copy link
Copy Markdown
Contributor Author

nuttycream commented Aug 5, 2025

Sorry I'm new to this but I'm assuming it's failing because of the new carapace dependency and the vendorHash mismatch?

nixos-cli on main [!?] via 🐹 v1.24.5 via ❄️  impure (nixos-shell-env) 
 ➜ nix build .#nixos
warning: Git tree '/home/j/nixos-cli' is dirty
error: hash mismatch in fixed-output derivation '/nix/store/1gll0ysvna2g7q3sksvfbism22006dg6-nixos-cli-0.13.0-dev-go-modules.drv':
         specified: sha256-Y4nB2WltjRF1anaDbMoylSg/f2hLhXHIt6xVhoPdL28=
            got:    sha256-di/aLNAC08ciCi/9VWt3gHh9P0mDHTOBt1mt5yMoLx0=
error: 1 dependencies of derivation '/nix/store/k37lqj4r5in8mzqkscd39pjni0hjfji1-nixos-cli-0.13.0-dev.drv' failed to build

@nuttycream nuttycream marked this pull request as ready for review August 5, 2025 21:35
Copy link
Copy Markdown
Collaborator

@water-sucks water-sucks left a comment

Choose a reason for hiding this comment

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

Thanks!

@water-sucks water-sucks merged commit 59028c7 into nix-community:main Aug 5, 2025
1 check passed
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