Class: Pindo::Command::Repo::Search

Inherits:
Pindo::Command::Repo show all
Defined in:
lib/pindo/command/repo/search.rb

Constant Summary

Constants inherited from Pindo::Command

DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS

Instance Attribute Summary

Attributes inherited from Pindo::Command

#args_help_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pindo::Command

command_name, #initialize_options, run, use_cache?

Methods included from Funlog::Mixin

#pindo_log_instance

Methods included from Pindoconfig::Mixin

#pindo_single_config

Constructor Details

#initialize(argv) ⇒ Search



48
49
50
51
52
53
54
55
56
57
# File 'lib/pindo/command/repo/search.rb', line 48

def initialize(argv)

    @args_repo_name = argv.shift_argument 
     = argv.flag?('force', false)
    @repo_name = argv.option('repo')
    @org_name = argv.option('org')

    super(argv)
    @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



38
39
40
41
42
43
44
# File 'lib/pindo/command/repo/search.rb', line 38

def self.options
  [
    ['--login', '强制再登录网站'],
    ['--repo', '仓库的名称'],
    ['--org', '仓库的group信息'],
  ].concat(super)
end

Instance Method Details

#runObject



63
64
65
66
67
# File 'lib/pindo/command/repo/search.rb', line 63

def run

    puts " coming soon !!"

end

#validate!Object



59
60
61
# File 'lib/pindo/command/repo/search.rb', line 59

def validate!
    super
end