Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RepoName string ExecName string Cloned bool // Planning to use this to determine when to exit the spinner when the repo is cloned. LinuxLoc string MacLoc string WindowsLoc string // Bruh )
I put all the globals here :shrug:
View Source
var DefaultKeyMap = KeyMap{ Up: key.NewBinding( key.WithKeys("k", "up"), key.WithHelp("↑/k", "move up"), ), Down: key.NewBinding( key.WithKeys("j", "down"), key.WithHelp("↓/j", "move down"), ), }
Functions ¶
func GetRepoName ¶
func StartClone ¶
Types ¶
type ExecModel ¶
type ExecModel struct {
// contains filtered or unexported fields
}
func NewExecModel ¶
func NewExecModel() ExecModel
type GitProgress ¶
type GitProgress struct {
Progress int
}
type InitialModel ¶
type InitialModel struct {
// contains filtered or unexported fields
}
func NewInitialModel ¶
func NewInitialModel() InitialModel
func (InitialModel) Init ¶
func (m InitialModel) Init() tea.Cmd
func (InitialModel) View ¶
func (m InitialModel) View() string
type InstallModel ¶
type InstallModel struct {
// contains filtered or unexported fields
}
func NewInstallModel ¶
func NewInstallModel() InstallModel
func (InstallModel) Init ¶
func (m InstallModel) Init() tea.Cmd
func (InstallModel) RenderView ¶
func (m InstallModel) RenderView() string
func (InstallModel) View ¶
func (m InstallModel) View() string
type KeyMap ¶
you don't need these keymaps but they can be helpful for generating the help menu for you
type ProgressWrapper ¶
type ProgressWrapper struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar() ProgressWrapper
func (ProgressWrapper) Init ¶
func (m ProgressWrapper) Init() tea.Cmd
func (ProgressWrapper) View ¶
func (m ProgressWrapper) View() string
type SpinnerParent ¶
type SpinnerParent struct {
// contains filtered or unexported fields
}
func NewSpinnerParent ¶
func NewSpinnerParent() *SpinnerParent
func (SpinnerParent) Init ¶
func (m SpinnerParent) Init() tea.Cmd
func (SpinnerParent) View ¶
func (m SpinnerParent) View() string
Click to show internal directories.
Click to hide internal directories.