GenGen
A simple generator using github repository.
Installation
$ gem install gengen
Usage
From github:
$ gengen user/template [directory] [foo=bar ...]
↓
$ gengen jugyo/sublime-plugin RubyUtils name=RubyUtils command=test
From local git repository:
$ gengen --local(-l) git_repository_path [directory] [foo=bar ...]
↓
$ gengen -l /path/to/sublime-plugin RubyUtils name=RubyUtils command=test
Creating Template
It is simple. You can embed variables to template using {{{var}}}
:
import sublime, sublime_plugin
class {{{name}}}Command(sublime_plugin.TextCommand):
def run(self, edit):
sublime.message_dialog("foo")
You can also embed variables in file name:
{{{name}}}.py
Example Templates
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request