#yaml-config #file #display #config-file #manual #view #filetree

bin+lib manual-filetree

A filetree display from a manual configuration

10 releases

0.0.1-rc.10 Mar 19, 2024

#423 in HTTP server

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
~114K SLoC