Skip to content

Strip ANSI escape codes for rich-click compatibility#5

Merged
coordt merged 2 commits intomainfrom
strip-ansi-escape-codes
Apr 5, 2026
Merged

Strip ANSI escape codes for rich-click compatibility#5
coordt merged 2 commits intomainfrom
strip-ansi-escape-codes

Conversation

@coordt
Copy link
Copy Markdown
Member

@coordt coordt commented Apr 5, 2026

Description

This pull request implements the following changes:

  • Introduces a _strip_ansi utility function to remove ANSI escape codes from text.
  • Updates the generate_docs function to ensure outputs are stripped of ANSI sequences.
  • Replaces usage of click with rich-click in the CLI and updates relevant imports.
  • Adds tests to verify the ANSI stripping functionality and ensure overall compatibility.

Checklist

  • Tests have been added or updated to validate the changes.
  • Documentation has been updated where necessary.

coordt added 2 commits April 5, 2026 08:25
- Introduced `_strip_ansi` utility function to remove ANSI escape codes.
- Enhanced `generate_docs` to ensure output is stripped of ANSI sequences.
- Replaced `click` with `rich-click` in CLI and updated related imports.
- Added tests to verify ANSI stripping functionality and ensure compatibility.
- Introduced `_strip_ansi` utility function to remove ANSI escape codes.
- Enhanced `generate_docs` to ensure output is stripped of ANSI sequences.
- Replaced `click` with `rich-click` in CLI and updated related imports.
- Added tests to verify ANSI stripping functionality and ensure compatibility.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-05 13:32 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 5, 2026

Version hint: minor
Current version: 0.2.0
New version (when merged): 0.3.0

Comment ID: Display version hint-auto-generated

@coordt coordt merged commit 7a94df3 into main Apr 5, 2026
10 checks passed
@coordt coordt deleted the strip-ansi-escape-codes branch April 5, 2026 13:32
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.

1 participant