Swiftpack.co -  faberNovel/xcresource-cli as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
faberNovel/xcresource-cli
A Xcode resources CLI
.package(url: "https://github.com/faberNovel/xcresource-cli.git", from: "0.1.3")

xcresource

A Xcode resource manager. Use it to download Xcode templates or snippets from git repositories.

Requirements

  • Swift 5.2
  • Xcode 11.4 or later
  • macOS 10.5

Installation

Homebrew

Run the following command to install using Homebrew:

$ brew install fabernovel/formulae/xcresource

(this will also install the cmake dependency)

To uninstall it:

$ brew uninstall xcresource

Manually

Run the following commands to build and install manually:

$ git clone https://github.com/faberNovel/xcresource-cli
$ cd xcresource-cli
$ make install

Usage

OVERVIEW: A Swift command-line tool to manage Xcode resources.

USAGE: xcresource <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  template                A command to manage Xcode templates.
  snippet                 A command to manage Xcode snippets.

xcresource template

OVERVIEW: A Swift command-line tool to manage Xcode templates.

USAGE: xcresource template <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  install                 Install Xcode templates from a git repository.
  remove                  Remove Xcode templates.
  list                    List Xcode templates.
  open                    Open Xcode templates folder.

Running xcresource template install installs the Fabernovel templates under the FABERNOVEL namespace.

xctemplate snippet

OVERVIEW: A Swift command-line tool to manage Xcode snippets.

USAGE: xcresource snippet <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  install                 Install Xcode snippets from a git repository.
  remove                  Remove Xcode snippet.
  list                    List Xcode snippet.
  open                    Open Xcode snippets folder.

Running xcresource snippet install installs the Fabernovel snippets under the FABERNOVEL namespace.

Contributing

To test

make install

GitHub

link
Stars: 32
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

0.1.3
1 week ago

Fixed

  • Fixed relative URL parameters #7
  • Fixed empty code snippets folder #11

Updated

  • Updated xcresource snippet remove: it can not delete custom snippets
  • Updated CLI messages

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