aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-10-18 14:33:00 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-10-18 14:33:00 -0500
commit30a1e4f21991dcc02d28106d6ba331b39332346e (patch)
treee47555ce010248e940af119766d59945f3762e89 /main.go
parentUse in-the-field TOML example (diff)
downloadwsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar.gz
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar.bz2
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar.lz
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar.xz
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.tar.zst
wsl-tui-30a1e4f21991dcc02d28106d6ba331b39332346e.zip
Add accessibility mode
Why not Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 2b4487b..ea3c821 100644
--- a/main.go
+++ b/main.go
@@ -58,7 +58,7 @@ func main() {
log.Fatal(err)
}
- // fmt.Println(config)
+ accessibleMode := os.Getenv("ACCESSIBLE") != ""
var distro Distribution
@@ -79,7 +79,7 @@ func main() {
}, &config,
),
),
- ).WithTheme(huh.ThemeDracula()).Run()
+ ).WithAccessible(accessibleMode).WithTheme(huh.ThemeDracula()).Run()
if err != nil {
if err == huh.ErrUserAborted {