Sha256: da849d7d99f586dbb7ffa089cac7571e9986de4dc0f4b010d0e5303c4361c9d3

Contents?: true

Size: 915 Bytes

Versions: 3

Compression:

Stored size: 915 Bytes

Contents

require File.join File.dirname(__FILE__), 'vim-epidemic'
require 'commander/import'

program :name, 'vim-epidemic'
program :version, VimEpidemic::VERSION
program :description, 'Downloads vim plugins and installs them into the pathogen.vim bundle directory.'

controller = VimEpidemic::Controller.new

command :info do |c|
  c.syntax = 'vim-epidemic'
  c.description = 'Show configuration and list installed plugins (default action)'
  c.action do |args,options|
    controller.info options
  end
end

command :update do |c|
  c.syntax = 'vim-epidemic update'
  c.description = 'Installs configured plugins'
  c.action do |args,options|
    controller.update options
  end
end

command :add do |c|
  c.syntax = 'vim-epidemic add <REPO>'
  c.description = 'Adds a plugin repository to install (run "update" to install)'
  c.action do |args, options|
    controller.add args, options
  end
end

default_command :info

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vim-epidemic-0.0.4 lib/program.rb
vim-epidemic-0.0.3 lib/program.rb
vim-epidemic-0.0.2 lib/program.rb