File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,17 @@ import (
44 "log"
55
66 tea "github.com/charmbracelet/bubbletea"
7+ "gradient-engineer/toolbox"
78)
89
910func main () {
1011 // Create a new toolbox instance
11- toolbox := NewToolbox ("https://gradient.engineer/toolbox_v0.tar.xz" )
12- defer toolbox .Cleanup ()
12+ tb := toolbox .NewToolbox ("https://gradient.engineer/toolbox_v0.tar.xz" )
13+
14+ defer tb .Cleanup ()
1315
1416 // Create and run the Bubble Tea program which will handle toolbox download and diagnostics
15- p := tea .NewProgram (NewModel (toolbox ), tea .WithMouseCellMotion ())
17+ p := tea .NewProgram (NewModel (tb ), tea .WithMouseCellMotion ())
1618 if _ , err := p .Run (); err != nil {
1719 log .Fatalf ("Error running Bubble Tea program: %v" , err )
1820 }
Original file line number Diff line number Diff line change 1- package main
1+ package toolbox
22
33import (
44 "archive/tar"
You can’t perform that action at this time.
0 commit comments