Sha256: 6d1fe5191e1e33583eb617456750da07cc929a0019e43891479815a229dbc4be

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

command :root do |c|
  c.workflow :hg
  c.desc "Prints the current repository's root path."
  c.help <<-EOF
amp root
  
  Prints the path to the current repository's root.
EOF
  c.on_run do |opts, args|
    repo = opts[:repository]
    puts repo.root
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

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