1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

WIP using runDirectCommand with xdg-open

This commit is contained in:
Jesse Duffield
2018-08-31 18:43:54 +10:00
parent cff1dee6dc
commit ae0d88f855
10 changed files with 51 additions and 65 deletions

View File

@ -90,3 +90,11 @@ func Loader() string {
index := nanos / 50000000 % int64(len(characters))
return characters[index : index+1]
}
// ResolvePlaceholderString populates a template with values
func ResolvePlaceholderString(str string, arguments map[string]string) string {
for key, value := range arguments {
str = strings.Replace(str, "{{"+key+"}}", value, -1)
}
return str
}