#manual #file #display #input #txt #filetree

bin+lib manual-filetree

A filetree display from a manual configuration

10 releases

0.0.1-rc.10 Mar 19, 2024

#174 in Configuration

Download history 471/week @ 2024-03-17 11/week @ 2024-03-24 84/week @ 2024-03-31

566 downloads per month

Custom license

19KB
461 lines

filetree

A filetree view from yaml config.

Example:

Input:

- dir1:
  - file.txt
- dir2:
  - subdir:
    - otherfile.txt

Output:

.
├── dir1
│   └── file.txt
└── dir2
    └── subdir
        └── otherfile.txt

publishing

Publish the crate with cargo-release. When this created tag is pushed, it should trigger the CD pipeline. This will build the npm package and publish it to the forgejo package repository as well as create a release on the Codeberg repo.

releases

To build a wasm release, run wasm-pack build --target web.

manual testing

Follow the instructions to build a release. Then run a little HTTP server (like python -m http.server) so you can test it in the browser.

Dependencies

~2–13MB
~124K SLoC