on main help sign in
feat: release new ui refactor (#2105)
commitbf1c65ebfc5f2cf09967fec0281dc96aeacef2e0 authorAndrey Nering <andreynering@users.noreply.github.com> dateTue 3 Feb 2026, 13:12 (8 months ago) parent7c5d6ca
1 file changed+6−1
internal/cmd/root.go+6−1
internal/cmd/root.go+6−1
@@ -93,8 +93,13 @@ crush -y
9393 // Set up the TUI.
9494 var env uv.Environ = os.Environ()
9595
96+ newUI := true
97+ if v, err := strconv.ParseBool(env.Getenv("CRUSH_NEW_UI")); err == nil {
98+ newUI = v
99+ }
100+
96101 var model tea.Model
97− if v, _ := strconv.ParseBool(env.Getenv("CRUSH_NEW_UI")); v {
102+ if newUI {
98103 slog.Info("New UI in control!")
99104 com := common.DefaultCommon(app)
100105 ui := ui.New(com)