Sha256: 53aa2638614fa26a28b0575a773a5ad5364c3b0d5e7a9f87168f5f7fb871b8d0
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::References < Command namespace :ref desc 'get <user> <repo> <ref>', 'Get a Reference' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def get(user, repo, ref) Reference.get user, repo, ref, options[:params] end desc 'list <user> <repo> <ref>', 'List all References' method_option :ref, :type => :string, :banner => 'branch reference' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def list(user, repo) ref = options[:ref] ? options[:ref] : nil Reference.list user, repo, ref, options[:params] end desc 'create <user> <repo>', 'Create a new Reference' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def create(user, repo) Reference.create user, repo, options[:params] end desc 'update <user> <repo> <ref>', 'Update a Reference' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def update(user, repo, ref) Reference.update user, repo, ref, options[:params] end desc 'delete <user> <repo> <ref>', 'Delete a Reference' method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def delete(user, repo, ref) Reference.delete user, repo, ref, options[:params] end end # References end # GithubCLI
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.1.3 | lib/github_cli/commands/references.rb |