Skip to content

Commit

Permalink
nix: removed obsolete doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 24, 2024
1 parent 65c5351 commit 8969ce3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/actions/tools/nix/flake.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

// ActionFlakes completes flakes currently available
//
// nixpkgs
// .
// nixops
// nixpkgs
func ActionFlakes() carapace.Action {
return carapace.ActionExecCommand("nix", "registry", "list")(func(output []byte) carapace.Action {
lines := strings.Split(string(output), "\n")
Expand Down Expand Up @@ -44,8 +44,7 @@ func styleForRegistry(s string) string {
}

// ActionFlakeAttributes completes attributes on a flake
// Completions are only supplied for local flakes or flakes
// in the registry.
// Completions are only supplied for local flakes or flakes in the registry.
//
// hello
// packages.x86_64-linux.hello
Expand Down Expand Up @@ -117,9 +116,7 @@ func directoryExists(path string) bool {
}

// ActionFlakeRefs completes a full flake reference
// It will only complete attributes for local flakes or flakes
// in the flake registry.
// It takes in the subcommand being completed
// It will only complete attributes for local flakes or flakes in the flake registry.
//
// nixpkgs#hello
// .#foo
Expand Down

0 comments on commit 8969ce3

Please sign in to comment.