Sha256: 42bf7088fcbc143b9efb1d77be15a831d4b6de951472c71c44c59dd662f242d3
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
# encoding: utf-8 module GithubCLI class Commands::Emails < Command namespace :email desc 'list', 'Lists email addresses for the authenticated user' 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 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 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.3 | lib/github_cli/commands/emails.rb |
github_cli-0.4.2 | lib/github_cli/commands/emails.rb |