Module: Chid Deprecated
- Defined in:
- lib/chid/commands/install.rb,
lib/chid.rb,
lib/chid/command.rb,
lib/chid/version.rb,
lib/chid/commands/pr.rb,
lib/chid/commands/init.rb,
lib/chid/commands/news.rb,
lib/chid/commands/config.rb,
lib/chid/commands/github.rb,
lib/chid/commands/tmux/list.rb,
lib/chid/commands/tmux/open.rb,
lib/chid/commands/alias/create.rb,
lib/chid/commands/currency/now.rb,
lib/chid/commands/installs/rvm.rb,
lib/chid/commands/installs/vim.rb,
lib/chid/commands/currency/list.rb,
lib/chid/commands/installs/node.rb,
lib/chid/commands/gitflow/commit.rb,
lib/chid/commands/stack_overflow.rb,
lib/chid/commands/currency/convert.rb,
lib/chid/commands/installs/dotfile.rb,
lib/chid/commands/workstation/list.rb,
lib/chid/commands/workstation/open.rb,
lib/chid/commands/installs/postgres.rb,
lib/chid/commands/workstation/create.rb,
lib/chid/commands/workstation/destroy.rb
Overview
Deprecated.
Defined Under Namespace
Modules: Commands Classes: Command
Constant Summary collapse
- REGEX_ACTIONS =
The Regex Actions are used to execute automatically some Rake::Task
The Keys are the name of the task
The Values are a list of possile matchs (even Rake::TaskArguments) from a typed text
Example 1:
:hello => [/hail/]
That means must exist a Rake::Task called :hello and when typed ‘hail’ the app will match with the value of the array and will execute the Rake::Task
Example 2:
:'install:dotfiles' => [/install dotfiles/] In that case the key has a namespace (install) and a task name (dotfiles)If you want to pass some argument you can use the Capture Enclosed option on regex.
Example 3:
:hello => [/hails(.*)/]
That means the captured arguments to use on Rake::Task is inside the ‘()’. In that case any characteres typed after ‘hail ’ will be used as Rake::TaskArguments
{ :help => [/help/, /:h/], :chid_config => [/config.*/, /chid config.*/], :news => [/news/], :'currency:list' => [/^list$/, /^list currency$/, /^currency$/, /^currency list$/], :'currency:convert' => [/^conv.*\s(\d*.?\d+?)\s(\w{3})\sto\s(\w{3})/, /^currency/], :'currency:current' => [/current/, /^currency/, /current currency/], :'install:rvm' => [/install rvm/], :'install:postgres' => [/install postgres/], :'install:dotfiles' => [/install dotfile/, /install dotfiles/, /install yard/], :'install:node' => [/install node/], :'run:postgres' => [/run postgres/], :'workstation:list' => [/^workstation/, /^work$/, /^list$/, /^list workstation$/, /^list work$/, /^work list$/], :'workstation:open' => [/^workstation/, /^work$/, /^work open$/, /^open workstation/, /^open work$/, /^open work\s(.+)/, /^open\s(.+)/, /^work open\s(.+)/], :'workstation:create' => [/^workstation/, /^work$/, /create/, /create workstation/, /create work/], :'workstation:destroy' => [/^workstation/, /^work$/, /destroy/, /destroy workstation/, /destroy work/, /remove/, /remove workstation/, /remove work/], :'update:os' => [/update os/, /update/], :'stack' => [/^stack\s(.*)/, /^stack/], :'translate:yandex_translate' => [/^t\s(.*)\s(\w{2})\sto\s(\w{2})/, /^t\s(.*)/ ], :'translate:yandex_list' => [/^translate list/ ], :github => [/^github\s(.+)/] }
- VERSION =
"0.2.2"