An open API service indexing awesome lists of open source software.

https://github.com/phimage/swift-cli-template


https://github.com/phimage/swift-cli-template

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# {{ tmplr.repo_name }}

[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://mit-license.org)
[![Platform](http://img.shields.io/badge/platform-macOS_Linux-lightgrey.svg?style=flat)](https://developer.apple.com/resources/)
[![Language](http://img.shields.io/badge/language-swift-orange.svg?style=flat)](https://developer.apple.com/swift)
[![build](https://github.com/{{ tmplr.owner_name}}/{{ tmplr.repo_name }}/actions/workflows/build.yml/badge.svg)](https://github.com/{{ tmplr.owner_name}}/{{ tmplr.repo_name }}/actions/workflows/build.yml)
[![Sponsor](https://img.shields.io/badge/Sponsor-%F0%9F%A7%A1-white.svg?style=flat)](https://github.com/sponsors/{{ tmplr.owner_name}})

My cli tool description

## Usage

```bash
{{ tmplr.repo_name }} --help
```

## Install

Just download from release if any, or build it (and move it to `PATH`)

or alternatively execute install script

```bash
sudo curl -sL https://{{ tmplr.owner_name}}.github.io/{{ tmplr.repo_name }}/install.sh | bash
```

## Build yourself

```bash
swift build -c release
```

or if we want without swift runtime dependencies (ie static executable)

```bash
swift build -c release -Xswiftc -static-executable
```

## CI

This projet is build using action [action-swift-cli-build](https://github.com/phimage/action-swift-cli-build)