repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

pico / tui / common
Eric Bower · 17 May 24

model.go

 1package common
 2
 3import (
 4	"log/slog"
 5
 6	"github.com/charmbracelet/ssh"
 7	"github.com/picosh/pico/db"
 8	"github.com/picosh/pico/shared"
 9)
10
11type SharedModel struct {
12	Logger          *slog.Logger
13	Session         ssh.Session
14	Cfg             *shared.ConfigSite
15	Dbpool          db.DB
16	User            *db.User
17	PlusFeatureFlag *db.FeatureFlag
18	Width           int
19	Height          int
20	HeaderHeight    int
21	Styles          Styles
22}