Skip to content

Add read-only indicator for computed env vars#3

Merged
alexrios merged 1 commit into
masterfrom
readonly-env-vars
Mar 4, 2026
Merged

Add read-only indicator for computed env vars#3
alexrios merged 1 commit into
masterfrom
readonly-env-vars

Conversation

@alexrios

@alexrios alexrios commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Mark computed/toolchain-derived env vars as read-only with a lock icon in the list view
  • Show an informational message instead of opening the edit screen for read-only vars
  • Add ReadOnly field to EnvVar and IsReadOnly() lookup in the domain layer
  • Update CLI, TUI delegate, edit screen, list screen, help screen, and styles

Closes #2

Test plan

  • mise run test passes (all packages)
  • Read-only vars (e.g. GOVERSION, GOTOOLDIR) show lock icon in list
  • Pressing Enter on a read-only var shows info message, not edit screen
  • Editable vars still open the edit screen normally

Mark environment variables that are computed by the Go toolchain as
read-only, preventing users from attempting edits that would fail.
Read-only vars show a lock icon in the list and display an informational
message instead of opening the edit screen.

Closes #2
@alexrios alexrios merged commit 54e285d into master Mar 4, 2026
1 check passed
@alexrios alexrios deleted the readonly-env-vars branch March 25, 2026 02:27
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.

Better UX for read only envs

1 participant