From 651856d4a3b37467cd26a5c5d8de52bd76a9be7f Mon Sep 17 00:00:00 2001 From: Roman Dzieciol Date: Sun, 7 Apr 2019 23:26:43 +0100 Subject: Update the swiftpm plugin autocompletion for Swift 5.0 --- plugins/swiftpm/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'plugins/swiftpm/README.md') 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 +``` -- cgit v1.2.3-70-g09d2 From 2ec868dde4adaca55bfa3fdac3585cd92f2a34c1 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Mon, 8 Apr 2019 23:22:15 +0200 Subject: swiftpm: improve README --- plugins/swiftpm/README.md | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'plugins/swiftpm/README.md') diff --git a/plugins/swiftpm/README.md b/plugins/swiftpm/README.md index d9462fb7f..291458511 100644 --- a/plugins/swiftpm/README.md +++ b/plugins/swiftpm/README.md @@ -2,7 +2,7 @@ ## Description -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). +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. To start using it, add the `swiftpm` plugin to your `plugins` array in `~/.zshrc`: @@ -20,22 +20,3 @@ 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 -``` -- cgit v1.2.3-70-g09d2