New vision of source code generation. Allows to generate files and automatically add them to project hierarchy by the most easiest way. All you need is to get templates where already declared their place in progect hierarchy and specify spec file where provided default project target. Also you can specify other target if required right in command line.
Setup templates and spec:
general setup [-r <templates repo> [-g]
Create a module with one of installed templates:
general -n main -t rsb_mvp_vm_module
general help to see available commands and options:
OVERVIEW: Generates code from templates. USAGE: general <subcommand> OPTIONS: --version Show the version. -h, --help Show help information. SUBCOMMANDS: gen (default) Generates modules from templates. create Creates a new template. list List of available templates. setup Provides your environment with templates config Provides an access to config file upgrade Upgrades general to specified version
Now you can create your own executable file and place it under
~/.general/plugins. The only requirement - this file should provide
--help option for it and each its public subcommands like swift
ArgumentParser (see example above). General will find appropriate plugin by command line arguments semantic.
To learn more about the configuration file see the dedicated documentation.
brew install rosberry/tap/general
mint install rosberry/general
This project is owned and maintained by Rosberry. We build mobile apps for users worldwide 🌏.
The project is available under the MIT license. See the LICENSE file for more info.
|Last commit: 6 days ago|
Implemented binary-based plugins system