Sha256: ee2c04644b56db9cdcde486892a373af4b600f210e9515e548cbe44dabc84f4d
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Emails < Command namespace :email desc 'list', 'Lists email addresses for the authenticated user' def list global_options = options.dup params = options[:params].dup Util.hash_without!(global_options, params.keys + ['params']) Email.all params, global_options end desc 'add <email>[<email>...]', 'Add email address(es) for the authenticated user' long_desc <<-DESC You can include a single email address or an array of addresses DESC def add(*emails) global_options = options.dup params = options[:params].dup Util.hash_without!(global_options, params.keys + ['params']) Email.add emails, params, global_options end desc 'delete <email>[<email>...]', 'Delete email address(es) for the authenticated user' long_desc <<-DESC You can include a single email address or an array of addresses DESC def delete(*emails) global_options = options.dup params = options[:params].dup Util.hash_without!(global_options, params.keys + ['params']) Email.delete emails, params, global_options end end # Emails end # GithubCLI
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | lib/github_cli/commands/emails.rb |
github_cli-0.6.1 | lib/github_cli/commands/emails.rb |
github_cli-0.6.0 | lib/github_cli/commands/emails.rb |