mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
config: add logs.pager configuration option
This commit is contained in:
parent
137486d721
commit
7ee9844285
1 changed files with 2 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ type LogsConfig struct {
|
||||||
Timestamps bool `yaml:"timestamps,omitempty"`
|
Timestamps bool `yaml:"timestamps,omitempty"`
|
||||||
Since string `yaml:"since,omitempty"`
|
Since string `yaml:"since,omitempty"`
|
||||||
Tail string `yaml:"tail,omitempty"`
|
Tail string `yaml:"tail,omitempty"`
|
||||||
|
Pager string `yaml:"pager,omitempty"` // Configuration for external logs viewer (e.g. "lnav", "less -R")
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDefaultConfig returns the application default configuration NOTE (to
|
// GetDefaultConfig returns the application default configuration NOTE (to
|
||||||
|
|
@ -383,6 +384,7 @@ func GetDefaultConfig() UserConfig {
|
||||||
Timestamps: false,
|
Timestamps: false,
|
||||||
Since: "60m",
|
Since: "60m",
|
||||||
Tail: "",
|
Tail: "",
|
||||||
|
Pager: "",
|
||||||
},
|
},
|
||||||
CommandTemplates: CommandTemplatesConfig{
|
CommandTemplates: CommandTemplatesConfig{
|
||||||
DockerCompose: "docker compose",
|
DockerCompose: "docker compose",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue