mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Update the swiftpm plugin autocompletion for Swift 5.0
This commit is contained in:
parent
c23ab00990
commit
651856d4a3
2 changed files with 229 additions and 117 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue