Sha256: 8495e50d623f0d2c96391d06024480b3cec419acf9ec66c0731959ecbb2ca040

Contents?: true

Size: 244 Bytes

Versions: 1

Compression:

Stored size: 244 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|
    puts opts[:repository].root
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp-0.5.3 lib/amp/commands/commands/workflows/hg/root.rb