Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve rendering of the tree #765

Closed
wants to merge 20 commits into from
Closed

Conversation

Licenser
Copy link
Contributor

Just because we can ;), the last element in a sub tree terminates with ` instead of |.

In addition the | is not drawn any longer on a level when there is no net element on that level to be show. (see ddb_client-0.1.11 in the example.

|- folsom_ddb-0.1.15 (hex package)
|  `- ddb_client-0.1.11 (hex package)
|     |- dproto-0.1.9 (hex package)
|     `- mmath-0.1.7 (hex package)
|- jsx-1.4.5 (hex package)

would have been drawn as:

|- folsom_ddb-0.1.15 (hex package)
|  `- ddb_client-0.1.11 (hex package)
|  |  |- dproto-0.1.9 (hex package)
|  |  `- mmath-0.1.7 (hex package)
|- jsx-1.4.5 (hex package)

Full output:

|- bcrypt-0.0.0+build.89.ref464e423 (git repo)
|- bitcask-1.7.0 (git repo)
|  `- otp_compat-1.0.0 (git repo)
|- clique-0.0.0+build.140.ref8067df5 (git repo)
|- cuttlefish-0.0.0+build.479.reff5f6fdc (git repo)
|  |- getopt-0.4.3 (git repo)
|  `- neotoma-0.0.0+build.125.ref760928e (git repo)
|- edown-0.2.4+build.100.ref8d7e7ca (git repo)
|- eper-0.93.0 (hex package)
|- esqlite-0.1.0 (git repo)
|- fifo_db-0.1.7 (git repo)
|  `- eleveldb-0.0.0+build.494.refa36dbd6 (git repo)
|- fifo_dt-0.1.51 (git repo)
|  `- riak_dt-0.0.0+build.307.reff7981d4 (git repo)
|- fifo_spec-0.1.19 (git repo)
|- fifo_utils-0.1.12 (git repo)
|- folsom_ddb-0.1.15 (hex package)
|  `- ddb_client-0.1.11 (hex package)
|     |- dproto-0.1.9 (hex package)
|     `- mmath-0.1.7 (hex package)
|- jsx-1.4.5 (hex package)
|- jsxd-0.1.10 (git repo)
|- lager-3.0.1 (git repo)
|  `- goldrush-0.1.7 (git repo)
|- lager_watchdog-0.1.10 (git repo)
|- libsnarlmatch-0.1.6 (git repo)
|- mdns_server_lib-0.1.19 (git repo)
|  |- mdns_server-0.1.1 (hex package)
|  `- ranch-1.1.0 (hex package)
|- meck-0.8.2 (git repo)
|- merklet-1.0.0 (git repo)
|- oauth2-0.6.0 (git repo)
|- rankmatcher-0.1.2 (git repo)
|- recon-2.2.0 (hex package)
|- riak_core-git (git repo)
|  |- basho_stats-1.0.3 (git repo)
|  |- chash-0.1.1 (git repo)
|  |- exometer_core-0.0.0+build.19.refb47a5d6 (git repo)
|  |  |- folsom-0.0.0+build.292.ref7294452 (git repo)
|  |  |  `- bear-0.0.0+build.11.refda820a1 (git repo)
|  |  |- parse_trans-0.0.0+build.106.ref82cc002 (git repo)
|  |  `- setup-0.0.0+build.79.ref51ee7c9 (git repo)
|  |- pbkdf2-0.0.0+build.2676.ref7076584 (git repo)
|  |- poolboy-0.0.0+build.124.ref8bb45fb (git repo)
|  `- riak_sysmon-2.0.0 (git repo)
|- riak_ensemble-0.0.0+build.154.ref2f6eb9c (git repo)
|- snarl-0.6.2 (project app)
|- snarl_oauth-0.1.0 (project app)
|- uuid-0.4.7 (git repo)
`- yubico-0.1.3 (git repo)

@tsloughter
Copy link
Collaborator

You'll need to rebase this, the PR is full of merges :). Also, maybe there is a better character we can use? Like the tree command uses in linux.

@tsloughter
Copy link
Collaborator

@Licenser
Copy link
Contributor Author

UTF8:

└─ rebar─3.0.0-beta-2 (project app)
   ├─ bbmustache─1.0.4 (hex package)
   ├─ erlware_commons─0.15.0 (hex package)
   ├─ getopt─0.8.2 (hex package)
   ├─ providers─1.4.1 (hex package)
   ├─ relx─3.5.0 (hex package)
   └─ ssl_verify_hostname─1.0.5 (hex package)

@Licenser
Copy link
Contributor Author

closed for #766 as a clean state

@Licenser Licenser closed this Aug 31, 2015
@Licenser Licenser mentioned this pull request Aug 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants