Class: GithubCLI::Commands::Events
Constant Summary
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
#behavior
Attributes included from Thor::Base
#args, #options, #parent_options
Instance Method Summary
collapse
all, command_to_show, extract_namespace, is_api_command?, output_formats
#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
#issue(user, repo) ⇒ Object
25
26
27
28
29
30
|
# File 'lib/github_cli/commands/events.rb', line 25
def issue(user, repo)
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.issue user, repo, params, global_options
end
|
#network(user, repo) ⇒ Object
33
34
35
36
37
38
|
# File 'lib/github_cli/commands/events.rb', line 33
def network(user, repo)
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.network user, repo, params, global_options
end
|
#org(org) ⇒ Object
41
42
43
44
45
46
|
# File 'lib/github_cli/commands/events.rb', line 41
def org(org)
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.organization org, params, global_options
end
|
71
72
73
74
75
76
77
|
# File 'lib/github_cli/commands/events.rb', line 71
def performed(user)
global_options = options.dup
params = options[:params].dup
params['public'] = true if options[:public]
Util.hash_without!(global_options, params.keys + ['params'])
Event.performed user, params, global_options
end
|
#public ⇒ Object
9
10
11
12
13
14
|
# File 'lib/github_cli/commands/events.rb', line 9
def public
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.public params, global_options
end
|
#received(user) ⇒ Object
56
57
58
59
60
61
62
|
# File 'lib/github_cli/commands/events.rb', line 56
def received(user)
global_options = options.dup
params = options[:params].dup
params['public'] = options[:public] if options[:public]
Util.hash_without!(global_options, params.keys + ['params'])
Event.received user, params, global_options
end
|
#repo(user, repo) ⇒ Object
17
18
19
20
21
22
|
# File 'lib/github_cli/commands/events.rb', line 17
def repo(user, repo)
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.repository user, repo, params, global_options
end
|
#user_org(user, org) ⇒ Object
84
85
86
87
88
89
|
# File 'lib/github_cli/commands/events.rb', line 84
def user_org(user, org)
global_options = options.dup
params = options[:params].dup
Util.hash_without!(global_options, params.keys + ['params'])
Event.user_org user, org, params, global_options
end
|