Route generic App and CLI code through lifecycle and driver models. Move native macOS detail, create, settings and legacy flows into explicit files, share progress and redaction through host, and enforce the boundary with a file-scoped architecture ratchet.
22 lines
534 B
Go
22 lines
534 B
Go
// Package progress defines task progress shared by host services and engine adapters.
|
|
package host
|
|
|
|
type Kind string
|
|
|
|
const (
|
|
KindStep Kind = "step"
|
|
KindProgress Kind = "progress"
|
|
KindNote Kind = "note"
|
|
)
|
|
|
|
type Update struct {
|
|
Kind Kind `json:"kind"`
|
|
Message string `json:"message,omitempty"`
|
|
Step string `json:"step,omitempty"`
|
|
Done int64 `json:"done"`
|
|
Total int64 `json:"total"`
|
|
Percent float64 `json:"percent"`
|
|
}
|
|
|
|
const WaitingNote = "waiting for another download of a macOS installer to end"
|