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

xctemplate

A Xcode template manager.

Requirements

  • Swift 5.2
  • Xcode 11.4 or later

Installation

Homebrew

Run the following command to install using Homebrew:

$ brew install fabernovel/formulae/xctemplate

(this will also install the cmake dependency)

To uninstall it:

$ brew uninstall xctemplate

Manually

Run the following commands to build and install manually:

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

Usage

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

USAGE: xctemplate <subcommand>

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

SUBCOMMANDS:
  install                 Install Xcode templates.
  remove                  Remove Xcode templates.
  list                    List Xcode templates.
  open                    Open Xcode templates folder.

  See 'xctemplate help <subcommand>' for detailed help.

xctemplate install

OVERVIEW: Install Xcode templates.

USAGE: xctemplate install [--url <url>] [--namespace <namespace>] [--templates-path <templates-path>] [--pointer <pointer>]

OPTIONS:
  -u, --url <url>         The templates Git repository url. <url> can be a local directory path: ./src/my_template_repo (default: https://github.com/faberNovel/CodeSnippet_iOS.git)
  -n, --namespace <namespace>
                          Namespaces are not visible in Xcode. A namespace acts as an installation folder. The templates will be installed inside it. If the namespace already exists, it is replaced. (default: FABERNOVEL)
  -t, --templates-path <templates-path>
                          The templates subdirectory path inside the repository. (default: XCTemplate)
  -p, --pointer <pointer> The targeted repo pointer (branch or tag) (default: master)
  -h, --help              Show help information.

Running xctemplate install installs the Fabernovel templates under the FABERNOVEL namespace.

xctemplate list

OVERVIEW: List Xcode templates.

USAGE: xctemplate list [--namespace <namespace>]

OPTIONS:
  -n, --namespace <namespace>
                          The template namespace to list. All namespaces are listed if not specified.
  -h, --help              Show help information.

xctemplate remove

OVERVIEW: Remove Xcode templates.

USAGE: xctemplate remove [--namespace <namespace>]

OPTIONS:
  -n, --namespace <namespace>
                          The template namespace to delete. (default: FABERNOVEL)
  -h, --help              Show help information.

xctemplate open

OVERVIEW: Open Xcode templates folder.

USAGE: xctemplate open

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

Contributing

To test

make install

GitHub

link
Stars: 1
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.

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