Sha256: 20eba4c09c8f24cb7403caac411a9028290f365d937b05a4bccfb04cb974d48c
Contents?: true
Size: 867 Bytes
Versions: 3
Compression:
Stored size: 867 Bytes
Contents
# encoding: utf-8 module GithubCLI class Commands::Trees < Command namespace :tree desc 'get <user> <repo> <sha>', 'Get a Tree' method_option :recursive, :type => :boolean, :aliases => ["-r"], :desc => 'get a tree recursively' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def get(user, repo, sha) if options[:recursive] options[:params]['recursive'] = true end Tree.get user, repo, sha, options[:params] end desc 'create <user> <repo>', 'Create a new Tree' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def create(user, repo) Tree.create user, repo, options[:params] end end # Blobs end # GithubCLI
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.1.3 | lib/github_cli/commands/trees.rb |
github_cli-0.1.2 | lib/github_cli/commands/trees.rb |
github_cli-0.1.1 | lib/github_cli/commands/trees.rb |