()
| 88 | } |
| 89 | |
| 90 | func locateProbableCompletionFileLocation() string { |
| 91 | var completionFileLocation string |
| 92 | if runtime.GOOS == "darwin" { |
| 93 | completionFileLocation = path.Join(string(os.PathSeparator)+"usr", "local", "etc", "bash_completion.d", "hoverctl") |
| 94 | } else { |
| 95 | completionFileLocation = path.Join(string(os.PathSeparator)+"etc", "bash_completion.d", "hoverctl") |
| 96 | } |
| 97 | return completionFileLocation |
| 98 | } |
| 99 | |
| 100 | func init() { |
| 101 | RootCmd.AddCommand(completionCmd) |
no outgoing calls
no test coverage detected