https://github.com/phimage/swift-cli-template
https://github.com/phimage/swift-cli-template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/phimage/swift-cli-template
- Owner: phimage
- License: mit
- Created: 2022-11-10T05:56:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T23:07:57.000Z (over 3 years ago)
- Last Synced: 2025-01-28T22:18:28.848Z (about 1 year ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# {{ tmplr.repo_name }}
[](http://mit-license.org)
[](https://developer.apple.com/resources/)
[](https://developer.apple.com/swift)
[](https://github.com/{{ tmplr.owner_name}}/{{ tmplr.repo_name }}/actions/workflows/build.yml)
[](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)