3 releases
Uses old Rust 2015
0.1.4 | Jul 3, 2016 |
---|---|
0.1.3 | Jul 2, 2016 |
0.1.2 | May 7, 2016 |
#34 in #lists
9KB
228 lines
treeify
treeify converts the output of a command that lists files into a tree representation similar to the output of the command tree.
Installation
If you use Arch Linux, a package is available in the AUR.
You can install the latest published version using cargo with the following command:
cargo install treeify
You can also install the latest version from the git repository:
cargo install --git https://github.com/dzamlo/treeify.git
A bash completion file is also generated but not installed with cargo install
. To use it you need to either use the AUR package, or manually build the application yourself.
Usage
Simply pipe the output of a command to treeify. For example:
find ~ -name '*.rs' | treeify
To prevent issue with filename containing new line characters, you can use the -0 or --null option:
find ~ -name '*.rs' -print0 | treeify --null
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~1.5MB
~25K SLoC