Sha256: d929d4b58fa224ae04b7dbbbaeff5886f65debca2cb0fca8eda6f562b97bf2de
Contents?: true
Size: 386 Bytes
Versions: 5
Compression:
Stored size: 386 Bytes
Contents
command :tip do |c| c.workflow :hg c.desc "Prints the information about the repository's tip" c.opt :template, "Which template to use while printing", :short => "-t", :type => :string, :default => "default" c.on_run do |options, args| repo = options[:repository] options.merge! :template_type => :log puts repo[repo.size - 1].to_templated_s(options) end end
Version data entries
5 entries across 5 versions & 2 rubygems