summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os_default_platform.go
blob: 9411e69a6efb054ab1cee98601ebded5e4c2acb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !windows

package commands

import (
	"runtime"
)

func getPlatform() *Platform {
	return &Platform{
		os:                   runtime.GOOS,
		catCmd:               "cat",
		shell:                "bash",
		shellArg:             "-c",
		openCommand:          "open {{filename}}",
		openLinkCommand:      "open {{link}}",
		escapedQuote:         `\'`,
		fallbackEscapedQuote: `\"`,
	}
}