Feat: works on my machine

This commit is contained in:
2025-10-16 05:07:56 +08:00
commit 5bbab63a2c
37 changed files with 4553 additions and 0 deletions

23
stages/base.go Normal file
View File

@@ -0,0 +1,23 @@
package stages
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/go-resty/resty/v2"
)
type BaseModel struct {
queue *[]*tea.Program
client *resty.Client
}
func NewBaseModel(
queue *[]*tea.Program,
endpoint string,
) *BaseModel {
return &BaseModel{
queue: queue,
client: resty.New().
SetBaseURL(endpoint).
SetDisableWarn(true),
}
}