Documentation
¶
Overview ¶
Package charttui provides a terminal user interface for chart management commands.
This package implements a TUI layer for github.com/macropower/kclipper/chartcmd, offering interactive visual feedback for chart operations. It uses the Bubble Tea framework to provide a rich terminal experience with progress indicators, spinners, and formatted output.
Index ¶
- type ActionModel
- type AddModel
- type ChartCommander
- type ChartTUI
- func (c *ChartTUI) AddChart(key string, chart *kclchart.ChartConfig) error
- func (c *ChartTUI) AddRepo(repo *kclhelm.ChartRepo) error
- func (c *ChartTUI) Init() (bool, error)
- func (c *ChartTUI) Set(chart, keyValueOverrides string) error
- func (c *ChartTUI) Subscribe(f func(any))
- func (c *ChartTUI) Update(charts ...string) error
- func (c *ChartTUI) Write(p []byte) (int, error)
- type UpdateModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionModel ¶
type ActionModel struct {
// contains filtered or unexported fields
}
func NewActionModel ¶
func NewActionModel(noun, verb string) *ActionModel
NewActionModel creates an ActionModel used to display the status of a simple action. It renders a spinner which is replaced with a result. If any logs are written, they will be displayed in the terminal above the spinner. `noun`: the outcome or instance of the action (e.g., "update"). `verb`: the ongoing action using present participle tense (e.g., "updating").
func (*ActionModel) Init ¶
func (m *ActionModel) Init() tea.Cmd
func (*ActionModel) View ¶
func (m *ActionModel) View() string
type AddModel ¶
type AddModel struct {
// contains filtered or unexported fields
}
func NewAddModel ¶
type ChartCommander ¶
type ChartTUI ¶
type ChartTUI struct {
// contains filtered or unexported fields
}
func NewChartTUI ¶
type UpdateModel ¶
type UpdateModel struct {
// contains filtered or unexported fields
}
func NewUpdateModel ¶
func NewUpdateModel() *UpdateModel
func (*UpdateModel) Init ¶
func (m *UpdateModel) Init() tea.Cmd
func (*UpdateModel) View ¶
func (m *UpdateModel) View() string