Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NSHipster/swift-gyb
Evaluates and runs a Swift GYB script
https://github.com/NSHipster/swift-gyb
Last synced: 3 months ago
JSON representation
Evaluates and runs a Swift GYB script
- Host: GitHub
- URL: https://github.com/NSHipster/swift-gyb
- Owner: NSHipster
- License: mit
- Archived: true
- Created: 2019-01-19T16:50:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T17:19:26.000Z (almost 6 years ago)
- Last Synced: 2024-04-20T17:52:22.924Z (7 months ago)
- Language: Swift
- Size: 5.86 KB
- Stars: 66
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# swift-gyb
Evaluates and runs a [Swift GYB](https://nshipster.com/swift-gyb/) script.
> **Disclaimer**:
> I wouldn’t recommend using this for much beyond quick code generation
> and testing existing GYB templates in your project.
> For anything more significant, you might instead consider
> [Sourcery](https://github.com/krzysztofzablocki/Sourcery).## Installation
Install `swift-gyb` with [Homebrew](https://brew.sh)
using the following command:```terminal
$ brew install nshipster/formulae/swift-gyb
```## Usage
```python
// hello.swift.gyb
%{ names = ['Johnny', 'Jane'] }%
% for name in names:
print("Hello, ${name}!")
% end
``````terminal
$ swift gyb ./hello.swift.gyb
Hello, Johnny!
Hello, Jane!
```## License
MIT
## Contact
NSHipster ([@NSHipster](https://twitter.com/NSHipster))