Documentation
¶
Index ¶
- Variables
- func Cmd() *cobra.Command
- func ListRunE(_ *cobra.Command, _ []string) error
- func PreRunE(_ *cobra.Command, _ []string) error
- func RunE(_ *cobra.Command, args []string) error
- func UpdateCmd() *cobra.Command
- func UpdatePreRunE(_ *cobra.Command, _ []string) error
- func UpdateRunE(cmd *cobra.Command, args []string) error
- type AddComponentDelegate
- func (i AddComponentDelegate) FilterValue() string
- func (i AddComponentDelegate) Height() int
- func (i AddComponentDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)
- func (i AddComponentDelegate) Spacing() int
- func (i AddComponentDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd
- type AddModel
- type ItemDelegate
- type Model
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{ Use: "add [component_url]", Short: "Add a component.", PreRunE: PreRunE, RunE: RunE, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List components.", RunE: ListRunE, }
Functions ¶
Types ¶
type AddComponentDelegate ¶ added in v0.2.7
type AddComponentDelegate struct {
// contains filtered or unexported fields
}
func (AddComponentDelegate) FilterValue ¶ added in v0.2.7
func (i AddComponentDelegate) FilterValue() string
func (AddComponentDelegate) Height ¶ added in v0.2.7
func (i AddComponentDelegate) Height() int
func (AddComponentDelegate) Spacing ¶ added in v0.2.7
func (i AddComponentDelegate) Spacing() int
type AddModel ¶ added in v0.2.7
type AddModel struct {
RepoURLs []string
// contains filtered or unexported fields
}
func NewAddModel ¶ added in v0.2.7
func NewAddModel() AddModel
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
TODO: Filter doesn't work
func (ItemDelegate) Height ¶ added in v0.2.4
func (i ItemDelegate) Height() int
func (ItemDelegate) Spacing ¶ added in v0.2.4
func (i ItemDelegate) Spacing() int
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
Click to show internal directories.
Click to hide internal directories.