Class: GithubCLI::Commands::Repositories
Constant Summary
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
#behavior
Attributes included from Thor::Base
#args, #options, #parent_options
Instance Method Summary
collapse
all, banner, 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, #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
#branches(user, repo) ⇒ Object
75
76
77
|
# File 'lib/github_cli/commands/repositories.rb', line 75
def branches(user, repo)
Repository.branches user, repo, options[:params], options[:format]
end
|
#contribs(user, repo) ⇒ Object
80
81
82
|
# File 'lib/github_cli/commands/repositories.rb', line 80
def contribs(user, repo)
Repository.contributors user, repo, options[:params], options[:format]
end
|
#create(args) ⇒ Object
48
49
50
51
52
53
54
|
# File 'lib/github_cli/commands/repositories.rb', line 48
def create(args)
org, options[:params]['name'] = Arguments.new(args).parse
options[:params]['org'] = org if org
options[:params]['org'] = options[:org] if options[:org]
Repository.create options[:params], options[:format]
end
|
#edit(user, repo) ⇒ Object
70
71
72
|
# File 'lib/github_cli/commands/repositories.rb', line 70
def edit(user, repo)
Repository.edit user, repo, options[:params], options[:format]
end
|
#get(user, repo) ⇒ Object
26
27
28
|
# File 'lib/github_cli/commands/repositories.rb', line 26
def get(user, repo)
Repository.get user, repo, options[:params], options[:format]
end
|
#languages(user, repo) ⇒ Object
85
86
87
|
# File 'lib/github_cli/commands/repositories.rb', line 85
def languages(user, repo)
Repository.languages user, repo, options[:params], options[:format]
end
|
#list ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/github_cli/commands/repositories.rb', line 16
def list
if options[:org]
options[:params]['org'] = options[:org]
elsif options[:user]
options[:params]['user'] = options[:user]
end
Repository.all options[:params], options[:format]
end
|
90
91
92
|
# File 'lib/github_cli/commands/repositories.rb', line 90
def tags(user, repo)
Repository.tags user, repo, options[:params], options[:format]
end
|
#teams(user, repo) ⇒ Object
95
96
97
|
# File 'lib/github_cli/commands/repositories.rb', line 95
def teams(user, repo)
Repository.teams user, repo, options[:params], options[:format]
end
|