Class: Pindo::Command::Repo::Search
- Inherits:
-
Pindo::Command::Repo
- Object
- Pindo::Command
- Pindo::Command::Repo
- Pindo::Command::Repo::Search
- Defined in:
- lib/pindo/command/repo/search.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Search
constructor
A new instance of Search.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Search
Returns a new instance of 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 @args_login_flag = argv.flag?('force', false) @repo_name = argv.option('repo') @org_name = argv.option('org') super(argv) @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/pindo/command/repo/search.rb', line 38 def self. [ ['--login', '强制再登录网站'], ['--repo', '仓库的名称'], ['--org', '仓库的group信息'], ].concat(super) end |
Instance Method Details
#run ⇒ Object
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 |