Merge pull request #2766 from carapace-sh/nix-installables-attrs

nix: ActionInstallables - support local attributes
This commit is contained in:
Ralf Steube 2025-04-23 23:08:45 +02:00 committed by GitHub
commit 58107efc4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,12 @@ func ActionInstallables() carapace.Action {
).ToA()
case 1:
return ActionPackages(strings.SplitN(c.Parts[0], "/", 2)[0])
switch c.Parts[0] {
case ".":
return ActionFlakeAttributes(".")
default:
return ActionPackages(strings.SplitN(c.Parts[0], "/", 2)[0])
}
default:
return carapace.ActionValues()