/VIPERA

The most simple VIPER module generator for Swift projects.

Primary LanguageSwiftOtherNOASSERTION

VIPERA (🐍)

The most simple VIPER module generator for Swift projects.

Usage

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

Template variables

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

Install

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.

License

WTFPL - Do what the fuck you want to.