on main help sign in
feat: release new ui refactor (#2105)
bf1c65eAndrey Nering
internal/cmd/root.go+6−1
@@ -93,8 +93,13 @@ crush -y
93 // Set up the TUI.
93 // Set up the TUI.
94 var env uv.Environ = os.Environ()
94 var env uv.Environ = os.Environ()
95
95
96+ newUI := true
97+ if v, err := strconv.ParseBool(env.Getenv("CRUSH_NEW_UI")); err == nil {
98+ newUI = v
99+ }
100+
96 var model tea.Model
101 var model tea.Model
97− if v, _ := strconv.ParseBool(env.Getenv("CRUSH_NEW_UI")); v {
102+ if newUI {
98 slog.Info("New UI in control!")
103 slog.Info("New UI in control!")
99 com := common.DefaultCommon(app)
104 com := common.DefaultCommon(app)
100 ui := ui.New(com)
105 ui := ui.New(com)