Sha256: 01a23421d2d1df68e6a358c882041ded056fc7f21ff4235d2cf70e7ed5aa7b94
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Tags < Command namespace :tag desc 'get <user> <repo> <sha>', 'Get a Tag' 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) Tag.get user, repo, sha, options[:params] end desc 'create <user> <repo>', 'Create a Tag Object' long_desc <<-DESC Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you simply have to create the reference - this call would be unnecessary. Parameters tag - String of the tag \n message - String of the tag message \n object - String of the SHA of the git object this is tagging \n type - String of the type of the object we're tagging. Normally this is a commit but it can also be a tree or a blob \n tagger.name - String of the name of the author of the tag \n tagger.email - String of the email of the author of the tag \n tagger.date - Timestamp of when this object was tagged \n DESC method_option :params, :type => :hash, :default => {}, :desc => 'Additonal request parameters e.i per_page:100' def create(user, repo) Tag.create user, repo, options[:params] end end # Tag end # GithubCLI
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.2.1 | lib/github_cli/commands/tags.rb |
github_cli-0.2.0 | lib/github_cli/commands/tags.rb |