rishabhg / padrino-zsh-completion

zshl autocompletion for Padrino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

All you need is add the _padrino source to your fpath and call zsh commands for enabling auto-completion. If you don't know what I mean please do the following:

$ mkdir -p ~/.zsh-completions
$ cp _padrino ~/.zsh-completions
$ vim ~/.zshrc
# add the following codes

  fpath=($HOME/.zsh-completions $fpath)
  autoload -U compinit
  compinit

Now reload your shell with exec $SHELL, install the padrino gem with gem install padrino, and finally start using $ padrino g and press tab for auto-completion.

Support

Currently all generator like the following are supported

controller  -- creates a new controller
mailer      -- creates a new mailer
migration   -- creates a new migration
model       -- creates a new model
plugin      -- add plugin to your app
project     -- create a new Padrino app

Depending in which context you are, different options are available, for example:

$padrino g model User -
  -d          -- removes all generated files
  -r          -- specify the root destination path
  -s          -- skip migration generation

or:

$padrino g project HelloPadrino -
  -a     -- specify db adapter (options: 'mysql', 'sqlite' , 'postgres')
  -b     -- execute bundler dependencies installation
  -c     -- define stylesheet (options: 'compass', 'less', 'sass', 'scss')
  -d     -- define orm (options: 'mongoid', 'activerecord', 'datamapper', 'couchrest', 'mongomatic', 'ohm', 'ripple', 'seq
  -e     -- define renderer (options: 'erb', 'haml', 'slim', 'liquid')
  -i     -- generate tiny project skeleton without any components
  -m     -- define mock (options: 'mocha', 'rr')
  -n     -- specify app name different from the project name
  -r     -- the root destination path for the project
  -s     -- define script (options: 'prototype' 'rightjs' 'jquery' 'mootools' 'extcore' 'dojo')
  -t     -- define test (options: 'bacon', 'shoulda', 'cucumber', 'testspec', 'riot', 'rspec', 'minitest')

License

This software is licensed under the MIT license.

© Matthias Günther matthias.guenther@wikimatze.de

About

zshl autocompletion for Padrino