(programName string)
| 170 | } |
| 171 | |
| 172 | func powershellCompletionLong(programName string) string { |
| 173 | return fmt.Sprintf(`Generate the autocompletion script for powershell. |
| 174 | |
| 175 | To load completions in your current shell session: |
| 176 | |
| 177 | %[1]s completion powershell | Out-String | Invoke-Expression |
| 178 | |
| 179 | To load completions for every new session, add the output of the above command |
| 180 | to your powershell profile. |
| 181 | `, programName) |
| 182 | } |
| 183 | |
| 184 | func init() { |
| 185 | RootCmd.AddCommand(newCompletionCmd()) |