Skip to content

Commit 7e4d3b4

Browse files
committed
snapshot
1 parent ee7e2b5 commit 7e4d3b4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ import (
44
"log"
55

66
tea "github.com/charmbracelet/bubbletea"
7+
"gradient-engineer/toolbox"
78
)
89

910
func 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
}

app/toolbox.go renamed to toolbox/toolbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package toolbox
22

33
import (
44
"archive/tar"

0 commit comments

Comments
 (0)