Commit Graph

5 Commits

Author SHA1 Message Date
e5194a7793 Add AGENTS.md with coding guidelines for agentic agents - Document build/lint/test commands (uv, pytest, ruff, mypy) - Specify code style: imports, formatting, type hints, naming - Outline error handling patterns and CLI conventions - Describe project structure and file type detection 2026-04-01 16:14:51 -07:00
dd45fb05f7 Handle unknown lexer, remove dead _THEMES list, tighten JSON detection - Catch unknown Pygments lexer names and fall back to plain text - Remove unused _THEMES list from cli.py - Only auto-detect JSON when content starts with { or [ to avoid false positives on trivial values like strings or numbers 2026-04-01 16:10:21 -07:00
5db15a8a17 Fix review issues: error handling, stdin TTY hint, narrow exceptions - Handle UnicodeDecodeError and PermissionError for file reading - Show hint when stdin is a TTY and no file given - Narrow JSON fallback exception from Exception to (SyntaxError, ValueError) - Rename 'type' parameter to 'file_type' to avoid shadowing builtin - Remove dead '.R' entry from EXTENSION_MAP 2026-04-01 16:02:56 -07:00
1abfcebc24 Implement rp CLI: rich-print markdown, JSON, code, and more
- Add typer CLI with auto file-type detection by extension
- Support markdown (rich.Markdown), JSON (rich.JSON), and 30+ code
  languages via Pygments syntax highlighting
- Features: line numbers toggle, pager support, stdin input,
  configurable color themes
- Project metadata: MIT license, author, classifiers, entry point
2026-04-01 15:56:57 -07:00
a1b5e72032 Initial project scaffold with uv 2026-04-01 15:52:58 -07:00