Function
createCompletionFile
(completionFilePath string)
Source from the content-addressed store, hash-verified
| 77 | } |
| 78 | |
| 79 | func createCompletionFile(completionFilePath string) error { |
| 80 | if err := RootCmd.GenBashCompletionFile(completionFilePath); err != nil { |
| 81 | return err |
| 82 | } |
| 83 | |
| 84 | if verbose { |
| 85 | fmt.Printf("Created completion file in %q\n", completionFilePath) |
| 86 | } |
| 87 | return nil |
| 88 | } |
| 89 | |
| 90 | func locateProbableCompletionFileLocation() string { |
| 91 | var completionFileLocation string |
Tested by
no test coverage detected