Skip to content

Commit

Permalink
Add --timeout and lint --globbed-files non-completions
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and daveshanley committed Apr 9, 2024
1 parent c3fd403 commit 2294f6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ func GetLintCommand() *cobra.Command {
}, cobra.ShellCompDirectiveNoFileComp)); regErr != nil {
panic(regErr)
}
if regErr := cmd.RegisterFlagCompletionFunc("globbed-files", cobra.NoFileCompletions); regErr != nil {
panic(regErr)
}

return cmd
}
Expand Down
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ func GetRootCommand() *cobra.Command {
)); regErr != nil {
panic(regErr)
}
if regErr := rootCmd.RegisterFlagCompletionFunc("timeout", cobra.NoFileCompletions); regErr != nil {
panic(regErr)
}

rootCmd.AddCommand(GetLintCommand())
rootCmd.AddCommand(GetVacuumReportCommand())
Expand Down

0 comments on commit 2294f6c

Please sign in to comment.