Documentation ¶
Index ¶
- Variables
- func CloneCmd(publicURL, name string) string
- func ErrorCmd(err error) tea.Cmd
- func RepoURL(publicURL, name string) string
- func StyleConfig() gansi.StyleConfig
- func TruncateString(s string, max int) string
- type Common
- func (c *Common) Backend() *backend.Backend
- func (c *Common) Config() *config.Config
- func (c *Common) Context() context.Context
- func (c *Common) PublicKey() ssh.PublicKey
- func (c *Common) Repo() *git.Repository
- func (c *Common) SetSize(width, height int)
- func (c *Common) SetValue(key, value interface{})
- type Component
- type ErrorMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigKey = &contextKey{"config"} RepoKey = &contextKey{"repo"} )
Keys to use for context.Context.
View Source
var ErrMissingRepo = errors.New("missing repo")
ErrMissingRepo indicates that the requested repository could not be found.
Functions ¶
func StyleConfig ¶
func StyleConfig() gansi.StyleConfig
StyleConfig returns the default Glamour style configuration.
func TruncateString ¶
TruncateString is a convenient wrapper around truncate.TruncateString.
Types ¶
type Common ¶
type Common struct {
Width, Height int
Styles *styles.Styles
KeyMap *keymap.KeyMap
Zone *zone.Manager
Output *termenv.Output
Logger *log.Logger
// contains filtered or unexported fields
}
Common is a struct all components should embed.
Click to show internal directories.
Click to hide internal directories.