Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
/ swift-gyb Public archive

Evaluates and runs a Swift GYB script

License

Notifications You must be signed in to change notification settings

NSHipster/swift-gyb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-gyb

Evaluates and runs a 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.

Installation

Install swift-gyb with Homebrew using the following command:

$ brew install nshipster/formulae/swift-gyb

Usage

// hello.swift.gyb
%{ names = ['Johnny', 'Jane'] }%
% for name in names:
print("Hello, ${name}!")
% end
$ swift gyb ./hello.swift.gyb
Hello, Johnny!
Hello, Jane!

License

MIT

Contact

NSHipster (@NSHipster)

About

Evaluates and runs a Swift GYB script

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages