目录
目录README.md

SPMTry

Need to install a CLI tool (SPM package) for a specific project, but don’t want to install it globally? Just spmtry it!!!

Example

Running latest Kitura sample from https://github.com/IBM-Swift/Kitura-Sample:

Demo running IBM Kitura

Getting Started

spmtry is an SPM package (surprise, surprise). Just clone the repo, build the project using swift build.

It is recommended to add the path to executable to $PATH

How it works

spmtry checkouts the repo, builds the project and runs the executable found in the package.

Understanding folder structure

  • ~/.spm/checkouts - All repos will be cloned as sub directories of this root directory
  • ~/.spm/bin - Currently, each built executable is placed in subdirectories (name = commit-hash) of this root directory. But this may change in future once --install flag is added
关于
64.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号