github.com/drone/runner-go@v1.12.0/shell/shell_windows.go (about) 1 // Copyright 2019 Drone.IO Inc. All rights reserved. 2 // Use of this source code is governed by the Polyform License 3 // that can be found in the LICENSE file. 4 5 // +build windows 6 7 package shell 8 9 import "github.com/drone/runner-go/shell/powershell" 10 11 // Suffix provides the shell script suffix. 12 const Suffix = ".ps1" 13 14 // Command returns the powershell command and arguments. 15 func Command() (string, []string) { 16 return powershell.Command() 17 } 18 19 // Script converts a slice of individual shell commands to 20 // a powershell script. 21 func Script(commands []string) string { 22 return powershell.Script(commands) 23 }