Sha256: 59f995a624f9ed5942319d80ed9b100725869ba88e71c8809069168f091e4676
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Emails < Command namespace :email desc 'list', 'Lists email addresses for the authenticated user' method_option :params, :type => :hash, :default => {}, :desc => 'Additional request parameters e.i per_page:100' def list() Email.all options[:params], options[:format] end desc 'add <email(s)>', 'Add email address(es) for the authenticated user' long_desc <<-DESC You can include a single email address or an array of addresses DESC method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def add(*emails) Email.add emails, options[:params], options[:format] end desc 'delete <email(s)>', 'Delete email address(es) for the authenticated user' long_desc <<-DESC You can include a single email address or an array of addresses DESC method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def delete(*emails) Email.delete emails, options[:params], options[:format] end end # Emails end # GithubCLI
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.4.0 | lib/github_cli/commands/emails.rb |
github_cli-0.3.1 | lib/github_cli/commands/emails.rb |