Swiftpack.co - dtaylor1701/XCSnippets as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dtaylor1701.
dtaylor1701/XCSnippets v1.1.0
Xcode snippet manager
⭐️ 13
🕓 2 years ago
macOS
.package(url: "https://github.com/dtaylor1701/XCSnippets.git", from: "v1.1.0")

XCSnippets

XCSnippets is a command line utility for installing XCode snippets from git repositories.

Brew installation

brew tap dtaylor1701/formulae
brew install xcsnippets

Usage

xcsnippets username/repo

The above will get all codesnippets in the root of the github repository given and install them into the current user's xcode data.

Any git respository can be used by supplying the full path.

xcsnippets "https://github.com/dtaylor1701/XCUISnippets.git"

Use the -r flag to replace existing snippets of the same name. This is useful for installing updates to snippets that have already been downloaded.

xcsnippets -r "https://github.com/dtaylor1701/XCUISnippets.git"

Other Functions

The -n option will use the title of each snippet to name any unnamed files in the xcode snippets folder.

xcsnippets -n

To open the snippets folder, use -o

xcsnippets -o

A list of snippets is maintained here. Take a look with -l. Please open a PR if you'd like to add a repo!

xcsnippets -l

GitHub

link
Stars: 13
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

Added some lists
4 years ago

Added -l option for listing available repos Added -o option for opening snippets folder

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics