summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os_default_platform.go
diff options
context:
space:
mode:
authorAnthony HAMON <anthony.hamon@iadvize.com>2018-08-21 21:48:09 +0200
committerAnthony HAMON <anthony.hamon@iadvize.com>2018-08-26 01:58:19 +0200
commit32f4d09e895411216be3b42a66c9e3a424658acd (patch)
tree27e1538018d7c662a7a03facba7fae52f97de673 /pkg/commands/os_default_platform.go
parenta5adfaee8ab29afd7aab434a3cf0a9d7e41f8879 (diff)
move platform specific code to dedicated platform files
Diffstat (limited to 'pkg/commands/os_default_platform.go')
-rw-r--r--pkg/commands/os_default_platform.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/commands/os_default_platform.go b/pkg/commands/os_default_platform.go
new file mode 100644
index 000000000..f6ac1b515
--- /dev/null
+++ b/pkg/commands/os_default_platform.go
@@ -0,0 +1,16 @@
+// +build !windows
+
+package commands
+
+import (
+ "runtime"
+)
+
+func getPlatform() *Platform {
+ return &Platform{
+ os: runtime.GOOS,
+ shell: "bash",
+ shellArg: "-c",
+ escapedQuote: "\"",
+ }
+}