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

https://github.com/digipolitan/polymorph-cli


https://github.com/digipolitan/polymorph-cli

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

PolymorphCLI
=================================

[![Swift Version](https://img.shields.io/badge/swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Swift Package Manager](https://rawgit.com/jlyonsmith/artwork/master/SwiftPackageManager/swiftpackagemanager-compatible.svg)](https://swift.org/package-manager/)
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](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).