mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Factor out common config setup functions in demo package
This commit is contained in:
parent
26989ce0ee
commit
b1bc437d1b
15 changed files with 34 additions and 25 deletions
19
pkg/integration/tests/demo/shared.go
Normal file
19
pkg/integration/tests/demo/shared.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package demo
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/config"
|
||||
|
||||
// Gives us nicer colours when we generate a git repo history with `shell.CreateRepoHistory()`
|
||||
func setGeneratedAuthorColours(config *config.AppConfig) {
|
||||
config.UserConfig.Gui.AuthorColors = map[string]string{
|
||||
"Fredrica Greenhill": "#fb5aa3",
|
||||
"Oscar Reuenthal": "#86c82f",
|
||||
"Paul Oberstein": "#ffd500",
|
||||
"Siegfried Kircheis": "#fe7e11",
|
||||
"Yang Wen-li": "#8e3ccb",
|
||||
}
|
||||
}
|
||||
|
||||
func setDefaultDemoConfig(config *config.AppConfig) {
|
||||
// demos look much nicers with icons shown
|
||||
config.UserConfig.Gui.NerdFontsVersion = "3"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue