component

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCmd = &cobra.Command{
	Use:     "add component_url",
	Short:   "Add component",
	PreRunE: PreRunE,
	RunE:    RunE,
}
View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List components",
	RunE:  ListRunE,
}

Functions

func Cmd

func Cmd() *cobra.Command

func ListRunE added in v0.2.3

func ListRunE(_ *cobra.Command, _ []string) error

func PreRunE added in v0.2.3

func PreRunE(_ *cobra.Command, args []string) error

func RunE added in v0.2.3

func RunE(_ *cobra.Command, args []string) error

func UpdateCmd added in v0.2.3

func UpdateCmd() *cobra.Command

func UpdatePreRunE added in v0.2.3

func UpdatePreRunE(_ *cobra.Command, _ []string) error

func UpdateRunE added in v0.2.3

func UpdateRunE(cmd *cobra.Command, args []string) error

Types

type ItemDelegate added in v0.2.4

type ItemDelegate struct {
	// contains filtered or unexported fields
}

func (ItemDelegate) FilterValue added in v0.2.4

func (i ItemDelegate) FilterValue() string

func (ItemDelegate) Height added in v0.2.4

func (i ItemDelegate) Height() int

func (ItemDelegate) Render added in v0.2.4

func (i ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (ItemDelegate) Spacing added in v0.2.4

func (i ItemDelegate) Spacing() int

func (ItemDelegate) Update added in v0.2.4

func (i ItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type Model added in v0.2.3

type Model struct {
	// contains filtered or unexported fields
}

func NewComponentModel added in v0.2.3

func NewComponentModel(initiator initiators, initialScreen screens) Model

func NewUpdateComponentModel added in v0.2.3

func NewUpdateComponentModel(updateFileName string) Model

func (Model) Init added in v0.2.3

func (m Model) Init() tea.Cmd

func (Model) Update added in v0.2.3

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View added in v0.2.3

func (m Model) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL