Class: VimGet::Commands::InstalledCommand

Inherits:
ListCommand show all
Defined in:
lib/vimget/commands/installed_command.rb

Constant Summary

Constants inherited from BaseCommand

BaseCommand::PROGRAM

Instance Attribute Summary

Attributes inherited from BaseCommand

#command, #defaults, #options, #options_group, #program_name, #summary

Instance Method Summary collapse

Methods inherited from ListCommand

#execute

Methods inherited from BaseCommand

#arguments, #execute, #invoke, #show_help

Constructor Details

#initializeInstalledCommand

Returns a new instance of InstalledCommand.



20
21
22
23
24
25
# File 'lib/vimget/commands/installed_command.rb', line 20

def initialize
  super("installed", "Display all installed scripts")
  options[:installed] = true
  remove_option('--outdated')
  remove_option('--installed')
end

Instance Method Details

#usageObject



27
28
29
# File 'lib/vimget/commands/installed_command.rb', line 27

def usage
  @program_name
end