Documentation ¶
Index ¶
- func UpdateRefCmd(repo proto.Repository) tea.Cmd
- type CopyMsg
- type CopyURLMsg
- type EmptyRepoMsg
- type FileBlameMsg
- type FileContentMsg
- type FileItem
- type FileItemDelegate
- type FileItems
- type FileItemsMsg
- type Files
- func (f *Files) FullHelp() [][]key.Binding
- func (f *Files) Init() tea.Cmd
- func (f *Files) Path() string
- func (f *Files) SetSize(width, height int)
- func (f *Files) ShortHelp() []key.Binding
- func (f *Files) SpinnerID() int
- func (f *Files) StatusBarInfo() string
- func (f *Files) StatusBarValue() string
- func (f *Files) TabName() string
- func (f *Files) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (f *Files) View() string
- type GoBackMsg
- type Log
- func (l *Log) FullHelp() [][]key.Binding
- func (l *Log) Init() tea.Cmd
- func (l *Log) Path() string
- func (l *Log) SetSize(width, height int)
- func (l *Log) ShortHelp() []key.Binding
- func (l *Log) SpinnerID() int
- func (l *Log) StatusBarInfo() string
- func (l *Log) StatusBarValue() string
- func (l *Log) TabName() string
- func (l *Log) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *Log) View() string
- type LogCommitMsg
- type LogCountMsg
- type LogDiffMsg
- type LogItem
- type LogItemDelegate
- type LogItemsMsg
- type Readme
- func (r *Readme) FullHelp() [][]key.Binding
- func (r *Readme) Init() tea.Cmd
- func (r *Readme) Path() string
- func (r *Readme) SetSize(width, height int)
- func (r *Readme) ShortHelp() []key.Binding
- func (r *Readme) SpinnerID() int
- func (r *Readme) StatusBarInfo() string
- func (r *Readme) StatusBarValue() string
- func (r *Readme) TabName() string
- func (r *Readme) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (r *Readme) View() string
- type ReadmeMsg
- type RefItem
- type RefItemDelegate
- type RefItems
- type RefItemsMsg
- type RefMsg
- type Refs
- func (r *Refs) FullHelp() [][]key.Binding
- func (r *Refs) Init() tea.Cmd
- func (r *Refs) Path() string
- func (r *Refs) SetSize(width, height int)
- func (r *Refs) ShortHelp() []key.Binding
- func (r *Refs) SpinnerID() int
- func (r *Refs) StatusBarInfo() string
- func (r *Refs) StatusBarValue() string
- func (r *Refs) TabName() string
- func (r *Refs) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (r *Refs) View() string
- type Repo
- type RepoMsg
- type Stash
- func (s *Stash) FullHelp() [][]key.Binding
- func (s *Stash) Init() tea.Cmd
- func (s *Stash) Path() string
- func (s *Stash) SetSize(width, height int)
- func (s *Stash) ShortHelp() []key.Binding
- func (s *Stash) SpinnerID() int
- func (s *Stash) StatusBarInfo() string
- func (s *Stash) StatusBarValue() string
- func (s *Stash) TabName() string
- func (s *Stash) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s *Stash) View() string
- type StashItem
- type StashItemDelegate
- type StashItems
- type StashListMsg
- type StashPatchMsg
- type SwitchTabMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateRefCmd ¶
func UpdateRefCmd(repo proto.Repository) tea.Cmd
UpdateRefCmd gets the repository's HEAD reference and sends a RefMsg.
Types ¶
type CopyURLMsg ¶
type CopyURLMsg struct{}
CopyURLMsg is a message to copy the URL of the current repository.
type EmptyRepoMsg ¶
type EmptyRepoMsg struct{}
EmptyRepoMsg is a message to indicate that the repository is empty.
type FileBlameMsg ¶
FileBlameMsg is a message that contains the blame of a file.
type FileContentMsg ¶
type FileContentMsg struct {
// contains filtered or unexported fields
}
FileContentMsg is a message that contains the content of a file.
type FileItem ¶
type FileItem struct {
// contains filtered or unexported fields
}
FileItem is a list item for a file.
func (FileItem) Description ¶
Description returns the description of the file item.
func (FileItem) FilterValue ¶
FilterValue implements list.Item.
type FileItemDelegate ¶
type FileItemDelegate struct {
// contains filtered or unexported fields
}
FileItemDelegate is the delegate for the file item list.
func (FileItemDelegate) Height ¶
func (d FileItemDelegate) Height() int
Height returns the height of the file item list. Implements list.ItemDelegate.
func (FileItemDelegate) Spacing ¶
func (d FileItemDelegate) Spacing() int
Spacing returns the spacing of the file item list. Implements list.ItemDelegate.
type FileItemsMsg ¶
type FileItemsMsg []selector.IdentifiableItem
FileItemsMsg is a message that contains a list of files.
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
Files is the model for the files view.
func (*Files) StatusBarInfo ¶
StatusBarInfo returns the status bar info.
func (*Files) StatusBarValue ¶
StatusBarValue returns the status bar value.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a model that displays a list of commits and their diffs.
func (*Log) StatusBarInfo ¶
StatusBarInfo returns the status bar info.
func (*Log) StatusBarValue ¶
StatusBarValue returns the status bar value.
type LogCommitMsg ¶
LogCommitMsg is a message that contains a git commit.
type LogCountMsg ¶
type LogCountMsg int64
LogCountMsg is a message that contains the number of commits in a repo.
type LogItem ¶
LogItem is a item in the log list that displays a git commit.
func (LogItem) Description ¶
Description returns the item description. Implements list.DefaultItem.
func (LogItem) FilterValue ¶
FilterValue implements list.Item.
type LogItemDelegate ¶
type LogItemDelegate struct {
// contains filtered or unexported fields
}
LogItemDelegate is the delegate for LogItem.
func (LogItemDelegate) Height ¶
func (d LogItemDelegate) Height() int
Height returns the item height. Implements list.ItemDelegate.
func (LogItemDelegate) Spacing ¶
func (d LogItemDelegate) Spacing() int
Spacing returns the item spacing. Implements list.ItemDelegate.
type LogItemsMsg ¶
type LogItemsMsg []selector.IdentifiableItem
LogItemsMsg is a message that contains a slice of LogItem.
type Readme ¶
type Readme struct {
// contains filtered or unexported fields
}
Readme is the readme component page.
func (*Readme) StatusBarInfo ¶
StatusBarInfo implements statusbar.StatusBar.
func (*Readme) StatusBarValue ¶
StatusBarValue implements statusbar.StatusBar.
type RefItem ¶
RefItem is a git reference item.
func (RefItem) Description ¶
Description implements list.DefaultItem.
func (RefItem) FilterValue ¶
FilterValue implements list.Item.
type RefItemDelegate ¶
type RefItemDelegate struct {
// contains filtered or unexported fields
}
RefItemDelegate is the delegate for the ref item.
func (RefItemDelegate) Height ¶
func (d RefItemDelegate) Height() int
Height implements list.ItemDelegate.
func (RefItemDelegate) Spacing ¶
func (d RefItemDelegate) Spacing() int
Spacing implements list.ItemDelegate.
type RefItemsMsg ¶
type RefItemsMsg struct {
// contains filtered or unexported fields
}
RefItemsMsg is a message that contains a list of RefItem.
type Refs ¶
type Refs struct {
// contains filtered or unexported fields
}
Refs is a component that displays a list of references.
func (*Refs) StatusBarInfo ¶
StatusBarInfo implements statusbar.StatusBar.
func (*Refs) StatusBarValue ¶
StatusBarValue implements statusbar.StatusBar.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo is a view for a git repository.
type RepoMsg ¶
type RepoMsg proto.Repository // nolint:revive
RepoMsg is a message that contains a git.Repository.
type Stash ¶
type Stash struct {
// contains filtered or unexported fields
}
Stash is the stash component page.
func (*Stash) StatusBarInfo ¶
StatusBarInfo implements common.Component.
func (*Stash) StatusBarValue ¶
StatusBarValue implements common.Component.
type StashItem ¶
StashItem represents a stash item.
func (StashItem) Description ¶
Description returns the description of the stash item.
func (StashItem) FilterValue ¶
FilterValue implements list.Item.
type StashItemDelegate ¶
type StashItemDelegate struct {
// contains filtered or unexported fields
}
StashItemDelegate is a delegate for stash items.
func (StashItemDelegate) Height ¶
func (d StashItemDelegate) Height() int
Height returns the height of the stash item list. Implements list.ItemDelegate.
func (StashItemDelegate) Spacing ¶
func (d StashItemDelegate) Spacing() int
Spacing implements list.ItemDelegate.
type StashListMsg ¶
StashListMsg is a message sent when the stash list is loaded.
type StashPatchMsg ¶
StashPatchMsg is a message sent when the stash patch is loaded.