diff options
author | Roman Dzieciol <roman.dzieciol@gmail.com> | 2019-04-07 23:26:43 +0100 |
---|---|---|
committer | Roman Dzieciol <roman.dzieciol@gmail.com> | 2019-04-07 23:26:43 +0100 |
commit | 651856d4a3b37467cd26a5c5d8de52bd76a9be7f (patch) | |
tree | eaebc7147f824ec0bfbed0816871ac752df2cf13 /plugins/swiftpm/README.md | |
parent | c23ab00990c8528a3334d178b9ec9135385cc99f (diff) | |
download | zsh-651856d4a3b37467cd26a5c5d8de52bd76a9be7f.tar.gz zsh-651856d4a3b37467cd26a5c5d8de52bd76a9be7f.tar.bz2 zsh-651856d4a3b37467cd26a5c5d8de52bd76a9be7f.zip |
Update the swiftpm plugin autocompletion for Swift 5.0
Diffstat (limited to 'plugins/swiftpm/README.md')
-rw-r--r-- | plugins/swiftpm/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/swiftpm/README.md b/plugins/swiftpm/README.md index 07ca25651..d9462fb7f 100644 --- a/plugins/swiftpm/README.md +++ b/plugins/swiftpm/README.md @@ -20,3 +20,22 @@ plugins=(... swiftpm) | `spx` | Generates an Xcode project | `swift package generate-xcodeproj` | | `sps` | Print the resolved dependency graph | `swift package show-dependencies` | | `spd` | Print parsed Package.swift as JSON | `swift package dump-package` | + +## Autocompletion + +The `_swift` file enables autocompletion for Swift Package Manager. Current version supports Swift 5.0 + + +### Updating the autocompletion for new version of Swift + +To update autocompletion to the Swift version present on your system: +``` +swift package completion-tool generate-zsh-script > ~/.oh-my-zsh/plugins/swiftpm/_swift +``` + +### Known issues + +If `swiftpm` is not added to your zsh plugins list, autocompletion will still be triggered but will result in errors: +``` +_values:compvalues:10: not enough arguments +``` |