Documentation ¶
Index ¶
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.