config

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiffModeAll      = "all"
	DiffModeStaged   = "staged"
	DiffModeUnstaged = "unstaged"
)
View Source
const (
	DiffStyleDefault = "default"
	DiffStylePatch   = "patch"
	DiffStyleFilled  = "filled"
)

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

Types

type Config

type Config struct {
	Interactive      *bool  `json:"interactive,omitempty"`
	Unified          *bool  `json:"unified,omitempty"`
	NoColor          *bool  `json:"no_color,omitempty"`
	DiffMode         string `json:"diff_mode,omitempty"`
	DiffStyle        string `json:"diff_style,omitempty"`
	AddedTextColor   string `json:"added_text_color,omitempty"`
	DeletedTextColor string `json:"deleted_text_color,omitempty"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL