CLAUDE.md · diff

git:20260812.15dc4bf to git:20260815.717dcbe

1 added, 47 removed. Audit A to B.

- # CLAUDE.md
-
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
-
- ## Project
-
- - `redi` は Redmine REST API を実行する Python 製 CLI/TUI
- - Python 3.13+
- - uv 管理
- - PyPIでは`redtile`として配布されている
-
- ## Commands
-
- - `task`(go-task) がタスクランナー
- ```
- $ task
- task: [default] task --list-all --sort none
- task: Available tasks for this project:
- * default: list
- * check: format, lint, typecheck, test
- * format: format
- * lint: lint
- * typecheck: typecheck
- * test: run tests (except E2E)
- * test:e2e: run E2E tests (all target Redmine versions)
- * test:e2e:6.1: run E2E tests against Redmine 6.1
- * test:e2e:7.0: run E2E tests against Redmine 7.0
- * release: release next version
- * demo: generate demo
- ```
-
- ## CLI 設計方針
-
- - 引数が不足する場合は対話的に入力させる
- - ただしエージェントやCIが非TTY環境で実行できるよう、引数だけで完結する形も用意する
- - 非TTY環境で引数が不足した場合は、対話に入らず何の入力を求めたかを示して exit 1 する
- - `redi.cli.interactive` の `prompt` / `ensure_interactive` を経由させる
- - `inline_choice` / `inline_checkbox` / `open_editor` は内部で `ensure_interactive` を呼んでいる
-
- ## i18n
-
- - 英語と日本語の二言語に対応している(デフォルトは英語)
- - `src/redi/i18n/`に実装が集約されている
- - `_protocol.py`にキーを定義して`ja.py`と`en.py` で対応する値を実装する
- - `tests/unit/test_i18n.py`
-
-
+ AGENTS.md