Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
651856d4
Unverified
Commit
651856d4
authored
Apr 07, 2019
by
Roman Dzieciol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the swiftpm plugin autocompletion for Swift 5.0
parent
c23ab009
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
183 additions
and
71 deletions
+183
-71
README.md
plugins/swiftpm/README.md
+19
-0
_swift
plugins/swiftpm/_swift
+164
-71
No files found.
plugins/swiftpm/README.md
View file @
651856d4
...
@@ -20,3 +20,22 @@ plugins=(... swiftpm)
...
@@ -20,3 +20,22 @@ plugins=(... swiftpm)
|
`spx`
| Generates an Xcode project |
`swift package generate-xcodeproj`
|
|
`spx`
| Generates an Xcode project |
`swift package generate-xcodeproj`
|
|
`sps`
| Print the resolved dependency graph |
`swift package show-dependencies`
|
|
`sps`
| Print the resolved dependency graph |
`swift package show-dependencies`
|
|
`spd`
| Print parsed Package.swift as JSON |
`swift package dump-package`
|
|
`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
```
plugins/swiftpm/_swift
View file @
651856d4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment