Class: GithubCLI::Commands::Events

Inherits:
GithubCLI::Command show all
Defined in:
lib/github_cli/commands/events.rb

Constant Summary

Constants inherited from GithubCLI::Command

GithubCLI::Command::ALIASES, GithubCLI::Command::API_CLASSES, GithubCLI::Command::HELP_COMMAND

Constants inherited from Thor

Thor::HELP_MAPPINGS, Thor::MANPAGES, Thor::THOR_RESERVED_WORDS, Thor::VERSION

Instance Attribute Summary

Attributes included from Thor::Actions

#behavior

Attributes included from Thor::Base

#args, #options, #parent_options

Instance Method Summary collapse

Methods inherited from GithubCLI::Command

all, banner, 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?, default_task, desc, global_flags, handle_no_task_error, #help, help, long_desc, map, method_option, method_options, printable_tasks, register, subcommand, subcommands, task_help

Methods included from Thor::Base

included, #initialize, register_klass_file, shell, shell=, subclass_files, subclasses

Instance Method Details

#issue(user, repo) ⇒ Object



19
20
21
# File 'lib/github_cli/commands/events.rb', line 19

def issue(user, repo)
  Event.issue user, repo, options[:params], options[:format]
end

#network(user, repo) ⇒ Object



24
25
26
# File 'lib/github_cli/commands/events.rb', line 24

def network(user, repo)
  Event.network user, repo, options[:params], options[:format]
end

#org(org) ⇒ Object



29
30
31
# File 'lib/github_cli/commands/events.rb', line 29

def org(org)
  Event.organization org, options[:params], options[:format]
end

#performed(user) ⇒ Object



55
56
57
58
59
60
# File 'lib/github_cli/commands/events.rb', line 55

def performed(user)
  if options[:public]
    options[:params]['public'] = true
  end
  Event.performed user, options[:params], options[:format]
end

#publicObject



9
10
11
# File 'lib/github_cli/commands/events.rb', line 9

def public
  Event.public options[:params], options[:format]
end

#received(user) ⇒ Object



41
42
43
44
45
46
# File 'lib/github_cli/commands/events.rb', line 41

def received(user)
  if options[:public]
    options[:params]['public'] = true
  end
  Event.received user, options[:params], options[:format]
end

#repo(user, repo) ⇒ Object



14
15
16
# File 'lib/github_cli/commands/events.rb', line 14

def repo(user, repo)
  Event.repository user, repo, options[:params], options[:format]
end

#user_org(user, org) ⇒ Object



67
68
69
# File 'lib/github_cli/commands/events.rb', line 67

def user_org(user, org)
  Event.user_org user, org, options[:params], options[:format]
end