The most simple VIPER module generator for Swift projects.
Generate module from default template
vipera MyModule
You can put your own templates under the .viper/Templates/
path, e.g. MyTemplate, usage:
vipera MyModule MyTemplate
You can use the following variables (in file names too):
- module - given module name (capitalized)
- project - based on
.xcodeproj
or.xcworkspace
name - author - based on git config
- date - current date in local short format
eg. {module} -> MyModule
Just clone or download this repository & run:
sudo swift run install --with-templates --with-xcode-templates
You can update the binary only if you drop the--with-templates
flag.
You can install Xcode templates using --with-xcode-templates
flag.
WTFPL - Do what the fuck you want to.