lib/github_cli/commands/blobs.rb in github_cli-0.2.1 vs lib/github_cli/commands/blobs.rb in github_cli-0.3.0
- old
+ new
@@ -7,11 +7,11 @@
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]
+ Blob.get user, repo, sha, options[:params], options[:format]
end
desc 'create <user> <repo>', 'Create a new Blob'
long_desc <<-DESC
Inputs
@@ -20,10 +20,10 @@
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]
+ Blob.create user, repo, options[:params], options[:format]
end
end # Blobs
end # GithubCLI