xcresource

一个 Xcode 资源管理器。使用它可以从 Git 仓库下载 Xcode 模板或代码片段。

要求

安装

Homebrew

运行以下命令,使用 Homebrew 进行安装

$ brew install fabernovel/formulae/xcresource

(这也会安装 cmake 依赖项)

要卸载它

$ brew uninstall xcresource

手动

运行以下命令手动构建和安装

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

用法

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.

运行 xcresource template installFabernovel 模板 安装在 FABERNOVEL 命名空间下。

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.

运行 xcresource snippet installFabernovel 代码片段 安装在 FABERNOVEL 命名空间下。

贡献

测试

make install