Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kareman/linuxmain-generator

A shell command to automatically add code to Swift Package Manager projects to run unit tests on Linux.
https://github.com/kareman/linuxmain-generator

command-line-tool linux swift-package-manager swift3 v

Last synced: about 1 month ago
JSON representation

A shell command to automatically add code to Swift Package Manager projects to run unit tests on Linux.

Awesome Lists containing this project

README

        

![Platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20Linux-lightgrey.svg)

# linuxmain-generator

Automatically add code to Swift Package Manager projects to run unit tests on Linux.

```text
Usage: linuxmain-generator
-o,--overwrite:
Replace /LinuxMain.swift if it already exists.
--testdir :
The path to the directory with the unit tests. Default = 'Tests'.
:
The project root directory. Default = './'.
```

_This project exists mainly to demonstrate the usage of the [FileSmith](https://github.com/kareman/FileSmith) and [Moderator](https://github.com/kareman/Moderator) projects. Check out [valeriomazzeo/linuxmain-generator](https://github.com/valeriomazzeo/linuxmain-generator) for more features._

## Installation

### Homebrew
```bash
brew install kareman/repo/linuxmain-generator
```

### Manual
```bash
git clone https://github.com/kareman/linuxmain-generator
cd linuxmain-generator
swift build -c release
cp .build/release/linuxmain-generator /usr/local/bin/linuxmain-generator
```

## License

Released under the MIT License (MIT), http://opensource.org/licenses/MIT

Kåre Morstøl, [NotTooBad Software](http://nottoobadsoftware.com)