summaryrefslogtreecommitdiffstats
path: root/src/output/tree.rs
AgeCommit message (Collapse)Author
2016-04-19Convert exa into a libraryBenjamin Sago
This commit removes the 'main' function present in main.rs, renames it to exa.rs, and puts the 'main' function in its own binary. This, I think, makes it more clear how the program works and where the main entry point is. Librarification also means that we can start testing as a whole. Two tests have been added that test everything, passing in raw command-line arguments then comparing against the binary coloured text that gets produced. Casualties include having to specifically mark some code blocks in documentation as 'tests', as rustdoc kept on trying to execute my ANSI art.
2015-12-22Move tree code to its module, and add testsBenjamin Sago
This commit separates the code used to generate the tree structure characters from the code used to build tables, meaning that it'll become possible to display tree structures without using any of the table code. Also, some tests are added to make sure that the tree code *basically* works.
2015-12-22Move TreePart to its own moduleBenjamin Sago