Class: GithubCLI::Commands::Teams

Inherits:
GithubCLI::Command show all
Defined in:
lib/github_cli/commands/teams.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, #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

#add_member(id, user) ⇒ Object



76
77
78
# File 'lib/github_cli/commands/teams.rb', line 76

def add_member(id, user)
  Team.add_member id, user, options[:params], options[:format]
end

#add_repo(id, user, repo) ⇒ Object



107
108
109
# File 'lib/github_cli/commands/teams.rb', line 107

def add_repo(id, user, repo)
  Team.add_repo id, user, repo, options[:params], options[:format]
end

#create(org) ⇒ Object



31
32
33
# File 'lib/github_cli/commands/teams.rb', line 31

def create(org)
  Team.create org, options[:params], options[:format]
end

#delete(id) ⇒ Object



55
56
57
# File 'lib/github_cli/commands/teams.rb', line 55

def delete(id)
  Team.delete id, options[:params], options[:format]
end

#edit(id) ⇒ Object



47
48
49
# File 'lib/github_cli/commands/teams.rb', line 47

def edit(id)
  Team.edit id, options[:params], options[:format]
end

#get(id) ⇒ Object



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

def get(id)
  Team.get id, options[:params], options[:format]
end

#list(org) ⇒ Object



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

def list(org)
  Team.all org, options[:params], options[:format]
end

#list_member(id) ⇒ Object



60
61
62
# File 'lib/github_cli/commands/teams.rb', line 60

def list_member(id)
  Team.all_member id, options[:params], options[:format]
end

#list_repo(id) ⇒ Object



92
93
94
# File 'lib/github_cli/commands/teams.rb', line 92

def list_repo(id)
  Team.all_repo id, options[:params], options[:format]
end

#member(id, user) ⇒ Object



68
69
70
# File 'lib/github_cli/commands/teams.rb', line 68

def member(id, user)
  Team.member id, user, options[:params], options[:format]
end

#remove_member(id, user) ⇒ Object



87
88
89
# File 'lib/github_cli/commands/teams.rb', line 87

def remove_member(id, user)
  Team.remove_member id, user, options[:params], options[:format]
end

#remove_repo(id, user, repo) ⇒ Object



117
118
119
# File 'lib/github_cli/commands/teams.rb', line 117

def remove_repo(id, user, repo)
  Team.remove_repo id, user, repo, options[:params], options[:format]
end

#repo(id, user, repo) ⇒ Object



97
98
99
# File 'lib/github_cli/commands/teams.rb', line 97

def repo(id, user, repo)
  Team.repo id, user, repo, options[:params], options[:format]
end