lib/github_cli/commands/keys.rb in github_cli-0.4.0 vs lib/github_cli/commands/keys.rb in github_cli-0.4.1

- old
+ new

@@ -4,19 +4,15 @@ class Commands::Keys < Command namespace :key desc 'list <user> <repo>', 'Lists keys' - method_option :params, :type => :hash, :default => {}, - :desc => 'Additional request parameters e.i per_page:100' def list(user, repo) Key.all user, repo, options[:params], options[:format] end desc 'get <user> <repo> <id>', 'Get a key' - method_option :params, :type => :hash, :default => {}, - :desc => 'Additional request parameters e.i per_page:100' def get(user, repo, id) Key.get user, repo, id, options[:params], options[:format] end desc 'create <user> <repo>', 'Create a new key' @@ -24,12 +20,10 @@ Inputs title - Required string. \n key - Required string. DESC - method_option :params, :type => :hash, :default => {}, - :desc => 'Additonal request parameters e.i per_page:100' def create(user, repo) Key.create user, repo, options[:params], options[:format] end desc 'edit <user> <repo> <id>', 'Edit a key' @@ -37,18 +31,14 @@ Inputs title - Required string. \n key - Required string. DESC - method_option :params, :type => :hash, :default => {}, - :desc => 'Additonal request parameters e.i per_page:100' def edit(user, repo, id) Key.edit user, repo, id, options[:params], options[:format] end desc 'delete <user> <repo> <id>', 'Delete a key' - method_option :params, :type => :hash, :default => {}, - :desc => 'Additonal request parameters e.i per_page:100' def delete(user, repo, id) Key.delete user, repo, id, options[:params], options[:format] end end # Keys