Sha256: 205a6ae06c3a0b54b58c12163c94210f898ea08ffe68372f7bb6cc7cc61fbe39
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
module Roll # class CommandIn < Command # def setup op.banner = "Usage: roll in [PATH]" op.separator "Insert path into current environment." op.separator "Options:" op.on("--depth", "-d INTEGER") do |int| opts[:depth] = int end end # def call path = File.expand_path(args.first || Dir.pwd) depth = opts[:depth] path, file = *Roll.in(path, depth) puts "#{path}" puts " '-> #{file}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roll-1.2.0 | lib/roll/commands/in.rb |