Sha256: 427c4361befe104cc38c448e011c1d71ef6e6155f5a2a3fd55eddeab6a96d529

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

command :manifest do |c|
  c.workflow :hg
  c.desc "Prints the manifest at a given revision (defaults to working directory)"
  c.add_opt :rev, "Specifies the revision to check", {:short => "-r", :type => :integer}
  c.on_run do |options, arguments|
    revision = options[:rev] || "tip"
    repo = options[:repository]
        
    repo[revision].each do |k, _|
      puts "#{k}"
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

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