Skip to content

#214 を実装する(スプリント m7e) - #428

Merged
takemi-ohama merged 4 commits into
sprint/m7efrom
feat/issue-214-m7e
Oct 5, 2026
Merged

takemi-ohama merged 4 commits into
sprint/m7efrom
feat/issue-214-m7e

Conversation

@takemi-ohama

Copy link
Copy Markdown
Contributor

[name] と --context が受け付ける値の集合について、argparse の定義を正本とし、各所の写しと突き合わせる一致テストを加えました(#214)。あわせて、同期の申し合わせを書いたコメントと文書内の列挙を、一致テストと確定仕様の表を指す形に改めました。

利用者向けの変化

  • 利用者向け文書では、[name] と --context の値を確定仕様の表へのリンクで示す

変更の要点

  • tests/cli/test_name_context_consistency.py を新設しました。argparse の定義を正本とし、[name] と --context の集合が写しと一致するかを確かめます。書き方は lint に合わせています。
  • bin/devbase と lib/devbase/cli.py の同期の申し合わせのコメントを、一致テストを参照する形に書き換えました。
  • [name] と --context の列挙を、確定仕様の表へのリンクに置き換えました。対象は次の文書です。
    • 仕様: docs/specifications/cli-argument-resolution.md、compose-profiles.md、remote-docker-context.md
    • 利用者向け: docs/user/cli-reference/02-project.md、container-operations.md、environment-variables.md
  • tests/cli/test_rebuild.py から 10 行を削りました。
  • スプリント m7e のブランチへ集める変更です。

テスト

ステップ exit 結果
test-limited 0 範囲テスト 1 本(117.9 秒 / 戦略 local-full)

モード: standard / 通した工程: 実装 → 完了判定 → Pull Request

🤖 Generated with Claude Code

takemi-ohama and others added 4 commits October 6, 2026 06:48
lib/devbase/cli.py の _create_parser() を入れ子の profile まで走査し、bin/devbase の
2 つのリスト・bash / zsh の補完・確定仕様の表と比べる一致テストを足す。
確定仕様 cli-argument-resolution.md に [name] と --context を受け付けるサブコマンドの表を置く。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bin/devbase と lib/devbase/cli.py の「同期注意」を、手での同期ではなく
tests/cli/test_name_context_consistency.py が一致を固定する旨に直す。
一致テストが包む test_rebuild.py の test_wrapper_rebuild_in_name_resolvable を外す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
remote-docker-context.md・compose-profiles.md・cli-reference/02-project.md・
container-operations.md・environment-variables.md の列挙を、cli-argument-resolution.md の
「[name] を受け付けるサブコマンド」「--context を受け付けるサブコマンド」の表へのリンクに置き換える。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@takemi-ohama
takemi-ohama marked this pull request as ready for review October 5, 2026 21:59
@takemi-ohama
takemi-ohama merged commit 317cafd into sprint/m7e Oct 5, 2026
10 checks passed
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