Class: GithubCLI::Commands::Members
- Inherits:
-
GithubCLI::Command
- Object
- Thor
- GithubCLI::Command
- GithubCLI::Commands::Members
- Defined in:
- lib/github_cli/commands/members.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
Attributes included from Thor::Base
#args, #options, #parent_options
Instance Method Summary collapse
- #conceal(org, user) ⇒ Object
- #delete(org, user) ⇒ Object
- #list(org) ⇒ Object
- #member(org, user) ⇒ Object
- #publicize(org, user) ⇒ Object
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
#conceal(org, user) ⇒ Object
55 56 57 |
# File 'lib/github_cli/commands/members.rb', line 55 def conceal(org, user) Member.conceal org, user, [:params], [:format] end |
#delete(org, user) ⇒ Object
45 46 47 |
# File 'lib/github_cli/commands/members.rb', line 45 def delete(org, user) Member.delete org, user, [:params], [:format] end |
#list(org) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/github_cli/commands/members.rb', line 21 def list(org) if [:public] Member.all_public org, [:params], [:format] else Member.all org, [:params], [:format] end end |
#member(org, user) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/github_cli/commands/members.rb', line 32 def member(org, user) if [:public] Member.public_member? org, user, [:params], [:format] else Member.member? org, user, [:params], [:format] end end |
#publicize(org, user) ⇒ Object
50 51 52 |
# File 'lib/github_cli/commands/members.rb', line 50 def publicize(org, user) Member.publicize org, user, [:params], [:format] end |