lib/github_cli/commands/blobs.rb in github_cli-0.4.0 vs lib/github_cli/commands/blobs.rb in github_cli-0.4.1
- old
+ new
@@ -4,12 +4,10 @@
class Commands::Blobs < Command
namespace :blob
desc 'get <user> <repo> <sha>', 'Get a Blob'
- method_option :params, :type => :hash, :default => {},
- :desc => 'Additonal request parameters e.i per_page:100'
def get(user, repo, sha)
Blob.get user, repo, sha, options[:params], options[:format]
end
desc 'create <user> <repo>', 'Create a new Blob'
@@ -17,11 +15,9 @@
Inputs
content - String of content \n
encoding - String containing encoding utf-8 or base64
DESC
- method_option :params, :type => :hash, :default => {},
- :desc => 'Additonal request parameters e.i per_page:100'
def create(user, repo)
Blob.create user, repo, options[:params], options[:format]
end
end # Blobs