Repository navigation
Conversation
Configure the existing root/shared --dir flag with Cobra MarkFlagDirname. Root, search, find and grep request shell filesystem directory filtering; this does not enumerate sessions or known projects. Record native API configuration provenance and the bounded roadmap status. Prior-Art: spf13/cobra shell_completions.go L81-L98 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L75-L80 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L416-L423 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go
Pass the existing local dir annotation error to Cobra CheckErr instead of discarding it. Attribute the local dir caller and native error handling separately; the upstream test assertion is not an equivalent error policy and no exact paired upstream call is claimed. Preserve the original commit and its rejected gate history. Prior-Art: spf13/cobra completions_test.go L1160-L1189 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra cobra.go L234-L241 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra shell_completions.go L81-L98 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L75-L80 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L416-L423 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go
Use the actual Cosign local-dir annotation caller, including its ignored result, with only cmd-to-root receiver adaptation. Keep RawClaw dir optional; Cosign's adjacent independent MarkFlagRequired annotation is not adopted. Preserve prior commits and rejected gate history. Prior-Art: sigstore/cosign cmd/cosign/cli/options/load.go L33-L35 (Apache-2.0) @0743bfcff5f81ec49ffcea2f61b98938f6ba70ec -> internal/cli/cli.go Prior-Art: spf13/cobra shell_completions.go L81-L98 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L75-L80 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go Prior-Art: spf13/cobra completions.go L416-L423 (Apache-2.0) @88b30ab89da2d0d0abb153818746c5a2d30eccec -> internal/cli/cli.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Cobra native filesystem directory completion for the existing optional
--dirflag on the root command,search,find, andgrep. Directory discovery stays with the shell; session-ID and known-project catalog completion remain outside this change.Validation: freshly built Go 1.24 static binary returns
ShellCompDirectiveFilterDirsfor all four command forms. The full race-suite log reportsokfor every tested package; build, vet, lint, independent source review and the normal pre-push provenance gate completed. Stock Zsh 5.9 also completed the directory, excluding a regular file with the same prefix, through genuine PTY TAB completion on all four command forms.