https://github.com/digipolitan/polymorph-cli
https://github.com/digipolitan/polymorph-cli
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/digipolitan/polymorph-cli
- Owner: Digipolitan
- License: bsd-3-clause
- Created: 2017-06-19T08:40:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T16:45:11.000Z (over 7 years ago)
- Last Synced: 2025-01-17T00:20:11.037Z (4 months ago)
- Language: Swift
- Size: 68.4 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
PolymorphCLI
=================================[](https://developer.apple.com/swift/)
[](https://swift.org/package-manager/)
[](http://twitter.com/Digipolitan)## Installation
* From source
First Download the source code & unzip it, after that run the following command inside the root directory
```sh
$ swift build -c release -Xswiftc -static-stdlib
```This command build the polymorph application in the following directory
`./.build/x86_64-apple-macosx10.10/release/PolymorphCLI`After that move this binary inside the `/usr/local/bin` directory as follow
```sh
$ sudo mv ./.build/x86_64-apple-macosx10.10/release/PolymorphCLI /usr/local/bin/polymorph
```* With artifact
Download the artifact associated to the GitHub release and move it to `/usr/local/bin/polymorph` in your computer
* With this follow curl command
```sh
$ curl https://api.github.com/repos/Digipolitan/polymorph-cli/releases/latest | python -c "import sys, json; print json.load(sys.stdin)['assets'][0]['browser_download_url']" | xargs -I % curl -L % > /usr/local/bin/polymorph && chmod u+x /usr/local/bin/polymorph
```## usage
```sh
$ polymorph --help
```## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details!
This project adheres to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report
unacceptable behavior to [[email protected]](mailto:[email protected]).## License
PolymorphCLI is licensed under the [BSD 3-Clause license](LICENSE).