summaryrefslogtreecommitdiff
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename to better reflect what functions/modules doHEADmasterA Farzat10 days1-2/+2
|
* Add a function that wraps output in an md fenceA Farzat10 days1-0/+1
|
* Move run to a separate moduleA Farzat2026-06-061-0/+1
| | | | Keeps main.rs for CLI logic only.
* Delegate logging management to Logger structA Farzat2026-06-061-0/+1
| | | | Allows verbosity management in a centralized way.
* Move render_filename to utils as display_pathA Farzat2026-06-061-0/+1
|
* Add a renderer module to render markdown contentA Farzat2026-06-041-0/+2
|
* Move normalizer to a child moduleA Farzat2026-06-041-234/+0
|
* Ensure unnormalized root paths can be handledA Farzat2026-06-031-25/+29
|
* Rename to intuitive namesA Farzat2026-06-031-59/+56
|
* Assert absolute paths in corresponding internalsA Farzat2026-06-031-12/+43
|
* Change normalize_path to a struct methodA Farzat2026-06-031-49/+50
| | | | | | | This means there is no need to call system API to get the CWD each time. In addition, some operations such as making root and origin absolute happen only once. The functions are also smaller and more straight-forward overall.
* Reject incorrect inputs which go outside fs rootA Farzat2026-06-031-9/+54
|
* Convert to absolute paths in normalize_pathA Farzat2026-06-031-13/+73
| | | | | | | | | | This round adds tests that provide a mixture of absolute and relative paths, forcing it to standardize by making them all absolute upfront. To decouple tests from `env::current_dir()`, a specialized internal function was created for tests. The original function simply calls `env::current_dir()` and passes its return value to the hidden function, on which tests are run.
* Make normalize_to_root return best-effortA Farzat2026-06-031-7/+12
| | | | | | | | | The previous verion failed if recursive `root.parent()` reached an error, but thinking about it, if the two paths have different starting points (like Windows drives), then the desirable function would be to return the absolute target path as-is. Naturally, the current funtion gives a wrong output if the supplied arguments are not absolute, but that shall be enforced using a future test.
* Make normalize return paths relative to rootA Farzat2026-06-021-11/+38
| | | | | This is still not complete, as it panics if target_path is not reachable from root.
* Add basic path normalization relative to originA Farzat2026-06-021-7/+28
|
* Start by normalizing user input filenamesA Farzat2026-06-021-0/+43
The filenames displayed in the output markdown should be consistent, regardless of the way they were input to the program (absolute, relative). They should always be relative to the project root.