2ec868dde4adaca55bfa3fdac3585cd92f2a34c1

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

swiftpm: improve README

Diff

 1diff --git a/plugins/swiftpm/README.md b/plugins/swiftpm/README.md
 2index d9462fb7f33e6ac3db26b6510733b823259f0fa9..2914585113f1cdb1c10de79046321308843d4d7b 100644
 3--- a/plugins/swiftpm/README.md
 4+++ b/plugins/swiftpm/README.md
 5@@ -2,7 +2,7 @@
 6 
 7 ## Description
 8 
 9-This plugin provides a few utilities that make you faster on your daily work with the [Swift Package Manager](https://github.com/apple/swift-package-manager).
10+This plugin provides a few utilities that make you faster on your daily work with the [Swift Package Manager](https://github.com/apple/swift-package-manager), as well as autocompletion for Swift 5.0.
11 
12 To start using it, add the `swiftpm` plugin to your `plugins` array in `~/.zshrc`:
13 
14@@ -20,22 +20,3 @@ plugins=(... swiftpm)
15 | `spx` | Generates an Xcode project          | `swift package generate-xcodeproj` |
16 | `sps` | Print the resolved dependency graph | `swift package show-dependencies`  |
17 | `spd` | Print parsed Package.swift as JSON  | `swift package dump-package`       |
18-
19-## Autocompletion
20-
21-The `_swift` file enables autocompletion for Swift Package Manager. Current version supports Swift 5.0
22-
23-
24-### Updating the autocompletion for new version of Swift
25-
26-To update autocompletion to the Swift version present on your system:
27-```
28-swift package completion-tool generate-zsh-script > ~/.oh-my-zsh/plugins/swiftpm/_swift
29-```
30-
31-### Known issues
32-
33-If `swiftpm` is not added to your zsh plugins list, autocompletion will still be triggered but will result in errors:
34-```
35-_values:compvalues:10: not enough arguments
36-```