Class: GithubCLI::Commands::Labels
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
-
#add(user, repo, issue_id, *args) ⇒ Object
-
#create(user, repo) ⇒ Object
-
#delete(user, repo, name) ⇒ Object
-
#get(user, repo, name) ⇒ Object
-
#issue(user, repo, number) ⇒ Object
-
#list(user, repo) ⇒ Object
-
#milestone(user, repo, number) ⇒ Object
-
#remove(user, repo, number) ⇒ Object
-
#replace(user, repo, issue_id, *args) ⇒ Object
-
#update(user, repo, name) ⇒ Object
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
#add(user, repo, issue_id, *args) ⇒ Object
44
45
46
|
# File 'lib/github_cli/commands/labels.rb', line 44
def add(user, repo, issue_id, *args)
Label.add user, repo, issue_id, args, options[:params], options[:format]
end
|
#create(user, repo) ⇒ Object
24
25
26
|
# File 'lib/github_cli/commands/labels.rb', line 24
def create(user, repo)
Label.create user, repo, options[:params], options[:format]
end
|
#delete(user, repo, name) ⇒ Object
34
35
36
|
# File 'lib/github_cli/commands/labels.rb', line 34
def delete(user, repo, name)
Label.delete user, repo, name, options[:params], options[:format]
end
|
#get(user, repo, name) ⇒ Object
14
15
16
|
# File 'lib/github_cli/commands/labels.rb', line 14
def get(user, repo, name)
Label.get user, repo, name, options[:params], options[:format]
end
|
#issue(user, repo, number) ⇒ Object
39
40
41
|
# File 'lib/github_cli/commands/labels.rb', line 39
def issue(user, repo, number)
Label.issue user, repo, number, options[:params], options[:format]
end
|
#list(user, repo) ⇒ Object
9
10
11
|
# File 'lib/github_cli/commands/labels.rb', line 9
def list(user, repo)
Label.all user, repo, options[:params], options[:format]
end
|
#milestone(user, repo, number) ⇒ Object
60
61
62
|
# File 'lib/github_cli/commands/labels.rb', line 60
def milestone(user, repo, number)
Label.milestone user, repo, number, options[:params], options[:format]
end
|
#remove(user, repo, number) ⇒ Object
49
50
51
52
|
# File 'lib/github_cli/commands/labels.rb', line 49
def remove(user, repo, number)
label_id, issue_id = Arguments.new(number).parse
Label.remove user, repo, issue_id, label_id, options[:params], options[:format]
end
|
#replace(user, repo, issue_id, *args) ⇒ Object
55
56
57
|
# File 'lib/github_cli/commands/labels.rb', line 55
def replace(user, repo, issue_id, *args)
Label.replace user, repo, issue_id, args, options[:params], options[:format]
end
|
#update(user, repo, name) ⇒ Object
29
30
31
|
# File 'lib/github_cli/commands/labels.rb', line 29
def update(user, repo, name)
Label.update user, repo, name, options[:params], options[:format]
end
|