-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
Objective
Add support for the ACCESSIBLE environment variable to the accessibility mode detection, following huh best practices.
Context
Currently, accessibility mode is detected via TERM=dumb and NO_COLOR. The huh library documentation recommends also checking the ACCESSIBLE environment variable for explicit accessibility mode control.
Approach
Update the isAccessibleMode() function to include ACCESSIBLE env var:
func isAccessibleMode() bool {
return os.Getenv("ACCESSIBLE") != "" ||
os.Getenv("TERM") == "dumb" ||
os.Getenv("NO_COLOR") != ""
}Files to Modify
- Update:
pkg/cli/interactive.go- EnhanceisAccessibleMode()function
Documentation to Update
- Update: Relevant documentation mentioning accessibility mode (if any)
- Consider: Adding
ACCESSIBLEto environment variable documentation
Acceptance Criteria
-
isAccessibleMode()checksACCESSIBLEenvironment variable - Setting
ACCESSIBLE=1enables accessible mode - Existing detection methods (
TERM=dumb,NO_COLOR) still work - Behavior is consistent with
huhlibrary best practices - Documentation updated if environment variables are documented
Related to [plan] Enhance interactive workflow builder with huh v0.7.0+ features #7216
AI generated by Plan Command for discussion #7214