# encoding: utf-8 module GithubCLI class Commands::Blobs < Command namespace :blob desc 'get ', '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] end desc 'create ', 'Create a new Blob' long_desc <<-DESC 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] end end # Blobs end # GithubCLI