Method: GithubCLI::Commands::Authorizations#create

Defined in:
lib/github_cli/commands/authorizations.rb

#createObject



46
47
48
49
50
51
52
53
54
55
# File 'lib/github_cli/commands/authorizations.rb', line 46

def create
  global_options     = options.dup
  params             = options[:params].dup
  params['scopes']   = options[:scopes]   if options[:scopes]
  params['note']     = options[:note]     if options[:note]
  params['note_url'] = options[:note_url] if options[:note_url]
  Util.hash_without!(global_options, params.keys + ['params'])

  Authorization.create params, global_options
end