Sha256: eaf1292470be41c8583cca746d103cc01edab13990b39de7c7a1bd1067d08301
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
#!/usr/bin/env ruby require 'codetree' require 'optparse' OptionParser.new do |opts| opts.banner = "Usage: codetree [options]" opts.on("-f", "--[no-]flat", "display flat list/tree") do |v| $flat = v || false end opts.on("-d", "--detail", "Specify a detail value [:none,:light,:medium,:full]") do |v| $detail = v || :medium end end.parse! p $detail p $flat codetree = Codetree::ParseTree.new(Dir['lib/*/*/*/*.rb'] + Dir['lib/*/*/*.rb'] + Dir['lib/*/*.rb'] + Dir['lib/*.rb']) codetree.print_tree detail: $detail, flat: $flat
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codetree-0.0.1 | bin/#codetree# |