summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Skip language fences for text or unknown filetypesA Farzat2026-06-071-2/+22
|
* Start adding language fence functionalityA Farzat2026-06-071-4/+4
|
* Move happy-path of render_file to a separate funcA Farzat2026-06-071-0/+4
|
* Standardize format in Logger and add Verbose levelA Farzat2026-06-074-8/+19
| | | | | I kind of want verbose level now as I want to know which files got included.
* Rename project_name to project_titleA Farzat2026-06-062-17/+17
|
* Fix duplicate warning messageA Farzat2026-06-061-3/+5
|
* Move run to a separate moduleA Farzat2026-06-063-293/+299
| | | | Keeps main.rs for CLI logic only.
* Ensure lexically duplicate paths are detectedA Farzat2026-06-061-0/+19
|
* Extend duplicate detection to non-adjacent pathsA Farzat2026-06-061-6/+28
|
* Add naive duplication avoidanceA Farzat2026-06-061-2/+29
|
* Delegate logging management to Logger structA Farzat2026-06-064-15/+82
| | | | Allows verbosity management in a centralized way.
* Move render_filename to utils as display_pathA Farzat2026-06-064-17/+17
|
* Add warnings for binary filesA Farzat2026-06-051-0/+8
|
* Add human readable warnings for large filesA Farzat2026-06-051-1/+37
|
* Make main.rs use render_pathA Farzat2026-06-052-4/+2
|
* Test rejection of too big filesA Farzat2026-06-051-2/+63
|
* Remove the deprecated renderer functionA Farzat2026-06-051-33/+1
|
* Use Renderer instead of renderer in main.rsA Farzat2026-06-051-16/+9
|
* Migrate renderer tests to RendererA Farzat2026-06-051-95/+29
|
* Test binary file rendering in RendererA Farzat2026-06-051-4/+28
|
* Test single file rendering in RendererA Farzat2026-06-051-2/+26
|
* Start migrating to Renderer structA Farzat2026-06-051-1/+26
| | | | | | The struct should gradually replace the renderer function in a more streamlined and configurable way. It writes directly to sink, and takes filepaths instead of preloaded buffers.
* Remove quotations around filenamesA Farzat2026-06-052-10/+19
| | | | Apparently they consume tokens and dilute attention for no benefit.
* Make headers more descriptive for LLMsA Farzat2026-06-052-15/+8
|
* Add basic CLI handlingA Farzat2026-06-051-3/+35
|
* Improve project name derivation handlingA Farzat2026-06-051-16/+42
|
* Default project name to the ending of root pathA Farzat2026-06-041-4/+26
|
* Use directories from tempfile for unit testingA Farzat2026-06-041-53/+40
|
* Obtain absolute input path from NormalizerA Farzat2026-06-042-17/+63
|
* Support root and origin_base in run functionA Farzat2026-06-041-6/+43
|
* Escape non-standard paths in the markdown fileA Farzat2026-06-042-25/+51
|
* Use Normalizer in the CLIA Farzat2026-06-041-7/+52
|
* Make NormalizeError implement Error traitA Farzat2026-06-041-5/+32
|
* Handle basic stdinA Farzat2026-06-041-8/+50
|
* Start adding CLI testsA Farzat2026-06-042-0/+46
|
* Identify and reject binary filesA Farzat2026-06-041-11/+34
|
* Safely escape files with backticksA Farzat2026-06-041-1/+60
|
* Add a renderer module to render markdown contentA Farzat2026-06-042-0/+40
|
* Move normalizer to a child moduleA Farzat2026-06-041-0/+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.
* Init cargo projectA Farzat2026-03-111-0/+3