mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-03 01:13:18 +03:00
move platform specific code to dedicated platform files
This commit is contained in:
16
pkg/commands/os_default_platform.go
Normal file
16
pkg/commands/os_default_platform.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// +build !windows
|
||||
|
||||
package commands
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func getPlatform() *Platform {
|
||||
return &Platform{
|
||||
os: runtime.GOOS,
|
||||
shell: "bash",
|
||||
shellArg: "-c",
|
||||
escapedQuote: "\"",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user