Documentation
¶
Index ¶
- type Application
- type ApplicationOption
- type Container
- func (c *Container) ContentHeight() int
- func (c *Container) ContentWidth() int
- func (c *Container) CurrentView() View
- func (c *Container) HandleError(err error)
- func (c *Container) Height() int
- func (c *Container) Init() tea.Cmd
- func (c *Container) NextView() View
- func (c *Container) PreviousView() View
- func (c *Container) Ready() bool
- func (c *Container) RenderState() *types.RenderState
- func (c *Container) Send(msg tea.Msg, delay time.Duration)
- func (c *Container) SetNextView(v View)
- func (c *Container) SetNotice(notice string, lvl styles.OutputLevel)
- func (c *Container) SetSendFunc(f func(msg tea.Msg))
- func (c *Container) SetState(key, val string)
- func (c *Container) SetStateValue(val string)
- func (c *Container) SetView(v View) error
- func (c *Container) Shutdown(finalizers ...func())
- func (c *Container) SizeSet() bool
- func (c *Container) Start() error
- func (c *Container) State() (string, string)
- func (c *Container) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (c *Container) View() string
- func (c *Container) WaitForExit()
- func (c *Container) Width() int
- type ContainerOptions
- type Program
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v0.0.23
type Application struct { Name string // contains filtered or unexported fields }
func NewApplication ¶ added in v0.0.23
func NewApplication(name string, opts ...ApplicationOption) *Application
type ApplicationOption ¶ added in v0.0.23
type ApplicationOption func(*Application)
func WithLoadingMsg ¶ added in v0.0.23
func WithLoadingMsg(msg string) ApplicationOption
func WithNotice ¶ added in v0.0.23
func WithNotice(notice string) ApplicationOption
func WithState ¶ added in v0.0.23
func WithState(key, val string) ApplicationOption
func WithStateKey ¶ added in v0.0.23
func WithStateKey(key string) ApplicationOption
func WithStateVal ¶ added in v0.0.23
func WithStateVal(val string) ApplicationOption
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer( ctx context.Context, app *Application, opts ...ContainerOptions, ) (*Container, error)
func (*Container) ContentHeight ¶
func (*Container) ContentWidth ¶
func (*Container) CurrentView ¶
func (*Container) HandleError ¶
func (*Container) PreviousView ¶
func (*Container) RenderState ¶ added in v0.0.23
func (c *Container) RenderState() *types.RenderState
func (*Container) SetNextView ¶ added in v0.0.23
func (*Container) SetNotice ¶ added in v0.0.23
func (c *Container) SetNotice(notice string, lvl styles.OutputLevel)
func (*Container) SetSendFunc ¶ added in v0.0.23
func (*Container) SetStateValue ¶ added in v0.0.23
func (*Container) WaitForExit ¶ added in v0.0.23
func (c *Container) WaitForExit()
type ContainerOptions ¶ added in v0.0.23
type ContainerOptions func(*Container)
func WithInitialTermSize ¶ added in v0.0.23
func WithInitialTermSize(width, height int) ContainerOptions
func WithInput ¶ added in v0.0.23
func WithInput(in io.Reader) ContainerOptions
func WithOutput ¶ added in v0.0.23
func WithOutput(out io.Writer) ContainerOptions
func WithTheme ¶ added in v0.0.23
func WithTheme(theme styles.Theme) ContainerOptions
type Program ¶ added in v0.0.23
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶ added in v0.0.23
Click to show internal directories.
Click to hide internal directories.