Class: GithubCLI::Commands::Search
- Inherits:
-
GithubCLI::Command
- Object
- Thor
- GithubCLI::Command
- GithubCLI::Commands::Search
- Defined in:
- lib/github_cli/commands/search.rb
Constant Summary
Constants inherited from GithubCLI::Command
GithubCLI::Command::ALIASES, GithubCLI::Command::HELP_COMMAND
Constants inherited from Thor
Thor::DynamicTask, Thor::HELP_MAPPINGS, Thor::HiddenTask, Thor::MANPAGES, Thor::THOR_RESERVED_WORDS, Thor::Task, Thor::UndefinedTaskError, Thor::VERSION
Instance Attribute Summary
Attributes included from Thor::Actions
Attributes included from Thor::Base
#args, #options, #parent_options
Instance Method Summary collapse
- #email(email) ⇒ Object
- #issue(owner, repo, keyword) ⇒ Object
- #repo(keyword) ⇒ Object
- #user(keyword) ⇒ Object
Methods inherited from GithubCLI::Command
all, command_to_show, extract_namespace, is_api_command?, output_formats
Methods included from Thor::Actions
#action, #append_to_file, #apply, #chmod, #comment_lines, #copy_file, #create_file, #create_link, #destination_root, #destination_root=, #directory, #empty_directory, #find_in_source_paths, #get, #gsub_file, #in_root, included, #initialize, #inject_into_class, #insert_into_file, #inside, #link_file, #prepend_to_file, #relative_to_original_destination_root, #remove_file, #run, #run_ruby_script, #source_paths, #template, #thor, #uncomment_lines
Methods inherited from Thor
check_unknown_options!, check_unknown_options?, command_help, default_command, desc, global_flags, handle_no_task_error, help, #help, long_desc, map, method_option, method_options, package_name, printable_commands, register, stop_on_unknown_option!, stop_on_unknown_option?, subcommand, subcommands
Methods included from Thor::Base
included, #initialize, register_klass_file, shell, shell=, subclass_files, subclasses
Instance Method Details
#email(email) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/github_cli/commands/search.rb', line 48 def email(email) = .dup params = [:params].dup params['email'] = email Util.hash_without!(, params.keys + ['params']) Search.email params, end |
#issue(owner, repo, keyword) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/github_cli/commands/search.rb', line 18 def issue(owner, repo, keyword) = .dup params = [:params].dup params['owner'] = owner params['repo'] = repo params['keyword'] = keyword params['state'] = [:state] if [:state] Util.hash_without!(, params.keys + ['params']) Search.issue params, end |
#repo(keyword) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/github_cli/commands/search.rb', line 30 def repo(keyword) = .dup params = [:params].dup params['keyword'] = keyword Util.hash_without!(, params.keys + ['params']) Search.repo params, end |
#user(keyword) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/github_cli/commands/search.rb', line 39 def user(keyword) = .dup params = [:params].dup params['keyword'] = keyword Util.hash_without!(, params.keys + ['params']) Search.user params, end |