Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstalledPkgMessage ¶
InstallPkgMessage is the message sent when a package is installed.
type ProgramContext ¶
type ProgramContext struct {
ScreenHeight int
ScreenWidth int
MainContentWidth int
MainContentHeight int
StartTask func(task Task) tea.Cmd
// contains filtered or unexported fields
}
ProgramContext is the context for the program.
func NewProgramContext ¶
func NewProgramContext() *ProgramContext
NewProgramContext creates a new ProgramContext with default values.
func WithContext ¶
func WithContext(ctx context.Context) *ProgramContext
WithContext creates a new ProgramContext with the given context.
func (*ProgramContext) Context ¶
func (c *ProgramContext) Context() context.Context
Context returns the context for the program.
func (*ProgramContext) SetContext ¶
func (c *ProgramContext) SetContext(ctx context.Context)
SetContext sets the context for the program.
Click to show internal directories.
Click to hide internal directories.