Skip to content

feat: add line numbering option to file output#16

Merged
simone-viozzi merged 1 commit intomainfrom
add-line-numbers
Mar 9, 2025
Merged

feat: add line numbering option to file output#16
simone-viozzi merged 1 commit intomainfrom
add-line-numbers

Conversation

@simone-viozzi
Copy link
Copy Markdown
Owner

  • Introduce the add_line_numbers helper function to number each line with zero-padding.
  • Update collect_files_content to apply line numbering when the -n/--number flag is enabled.
  • Add the new CLI option (-n/--number) in the main command.
  • Bump project version to 2.2.0.

fix #15

- Introduce the `add_line_numbers` helper function to number each line with zero-padding.
- Update `collect_files_content` to apply line numbering when the -n/--number flag is enabled.
- Add the new CLI option (-n/--number) in the main command.
- Bump project version to 2.2.0.
@simone-viozzi simone-viozzi merged commit 9ed7ee2 into main Mar 9, 2025
@simone-viozzi simone-viozzi deleted the add-line-numbers branch March 9, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add an option to add line numbers to all files

1 participant