mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(export): omit specific fields
This commit is contained in:
parent
0644c93a67
commit
48f633e0cb
|
@ -53,13 +53,13 @@ type Segment struct {
|
||||||
MaxWidth int `json:"max_width,omitempty" toml:"max_width,omitempty"`
|
MaxWidth int `json:"max_width,omitempty" toml:"max_width,omitempty"`
|
||||||
MinWidth int `json:"min_width,omitempty" toml:"min_width,omitempty"`
|
MinWidth int `json:"min_width,omitempty" toml:"min_width,omitempty"`
|
||||||
Filler string `json:"filler,omitempty" toml:"filler,omitempty"`
|
Filler string `json:"filler,omitempty" toml:"filler,omitempty"`
|
||||||
Background color.Ansi `json:"background" toml:"background"`
|
Background color.Ansi `json:"background,omitempty" toml:"background,omitempty"`
|
||||||
Foreground color.Ansi `json:"foreground" toml:"foreground"`
|
Foreground color.Ansi `json:"foreground,omitempty" toml:"foreground,omitempty"`
|
||||||
Newline bool `json:"newline,omitempty" toml:"newline,omitempty"`
|
Newline bool `json:"newline,omitempty" toml:"newline,omitempty"`
|
||||||
|
|
||||||
Enabled bool `json:"-" toml:"-"`
|
Enabled bool `json:"-" toml:"-"`
|
||||||
|
|
||||||
Text string
|
Text string `json:"-" toml:"-"`
|
||||||
|
|
||||||
env runtime.Environment
|
env runtime.Environment
|
||||||
writer SegmentWriter
|
writer SegmentWriter
|
||||||
|
@ -67,8 +67,8 @@ type Segment struct {
|
||||||
name string
|
name string
|
||||||
|
|
||||||
// debug info
|
// debug info
|
||||||
Duration time.Duration
|
Duration time.Duration `json:"-" toml:"-"`
|
||||||
NameLength int
|
NameLength int `json:"-" toml:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (segment *Segment) Name() string {
|
func (segment *Segment) Name() string {
|
||||||
|
|
Loading…
Reference in a new issue