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

Version Path
amp-0.5.3 lib/amp/commands/commands/workflows/hg/tip.rb
amp-0.5.2 lib/amp/commands/commands/workflows/hg/tip.rb
amp-0.5.1 lib/amp/commands/commands/workflows/hg/tip.rb
amp-pure-0.5.0 lib/amp/commands/commands/workflows/hg/tip.rb
amp-0.5.0 lib/amp/commands/commands/workflows/hg/tip.rb