Sha256: 3152ab61c3a2f818b635a161978442f84fff02831185a5cd7dede485519faa5e

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

#!/usr/bin/env ruby
require 'codetree'
require 'optparse'

$detail = :medium
$flat = false
$quiet = false

OptionParser.new do |opts|
  opts.banner = "Usage: codetree [options]"

  opts.on("-f", "--[no-]flat", "display flat list/tree") do |v|
    $flat = v
  end
  opts.on("-d", "--detail DETAIL", [:none, :light, :medium , :full],"Specify a detail value ( none, light, medium, full]") do |v|
    $detail = v.to_sym
  end
  opts.on("-q", "--[no-]quiet","Remove node symbols ('*') from output tree/list view") do |v|
    $quiet = v
  end

end.parse!





codetree = Codetree::ParseTree.new(Dir['lib/*/*/*/*.rb'] + Dir['lib/*/*/*.rb'] + Dir['lib/*/*.rb'] + Dir['lib/*.rb'])
codetree.print_tree detail: $detail, flat: $flat, quiet: $quiet

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codetree-0.0.1 bin/codetree