Repository navigation
#310 を実装する(スプリント m10a) - #440
Merged
Merged
Conversation
- env_rows.is_grouped と _MigrationPlan._grouped をやめ、SecretStore.grouped を使う - cmd_env と cmd_env_backend の振り分けを run_subcommand へまとめる - app._pause_for_review は文言を渡して flow.pause_for_review を呼ぶ - _format_value の伏せる条件と切り詰めの数を名前付きの定数にする Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- sources・targets・store・counts を _SyncContext に束ね、更新件数は write を通して counts へ足す - _open_sync_targets は (targets, store, rc) の組をやめ、文脈を返すか _SyncAborted を送る - GCP のキーからプロファイル名と認証ファイルを求める段を _gcp_credentials にまとめ、 同期 (_sync_gcp) と控えの登録 (_record_gcp_source) が共に使う - _sync_gcp を控えに無いプロファイルと控えにあるプロファイルの 2 つの関数に分け、入れ子を浅くする Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cmd_env への委譲と chdir + PWD の差し替えを tui/env_delegate.py へ移す。env メニュー (actions_env) と画面はそこを使い、画面からメニューを読まない。_screen の遅延 import をやめる - グループの選択 (group_attrs) を _select_group と同じ actions_env_keys へ移す - delegate_attrs などの 'global' を secret_store の KIND_GLOBAL にする - test_the_tui_never_writes_the_store_itself: inspect.stack で呼び出し元のモジュール名を見る 検査をやめ、委譲した cmd_env の実行中にだけ置き場への書き込みが起きることを確かめる (内部への依存を外した。モジュールを分けても検査が効く) - test_actions_env の run_in_project のテストは差し替え先が env_delegate に変わった Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
env コマンドと TUI の env 画面を内部で整理しました。grouped の判定・サブコマンドの振り分け・Enter 待ちを 1 か所へまとめ、env の画面とメニューの循環参照を解消しています(#310、スプリント m10a のブランチへ集める変更)。
利用者向けの変化
移行の手順
変更の要点
lib/devbase/commands/env.py、subcommands.py)env.py、env_backend.py、env/secret_store.py)tui/actions_env.py、tui/app.py、tui/flow.py)tui/env_delegate.pyへ切り出しました。tui/actions_env_keys.py、tui/actions_env_openbao.py)tests/cli/tui/test_actions_env.py、test_actions_env_keys.py)テスト
モード: standard / 通した工程: 実装 → 完了判定 → Pull Request
🤖 Generated with Claude Code