You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
runner-go/shell/shell.go

25 lines
611 B
Go

5 years ago
// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Polyform License
5 years ago
// that can be found in the LICENSE file.
7 months ago
//go:build !windows
5 years ago
// +build !windows
package shell
7 months ago
import "git.awesome-for.me/liuzhiguo/runner-go/shell/bash"
5 years ago
// Suffix provides the shell script suffix.
const Suffix = ""
// Command returns the powershell command and arguments.
5 years ago
func Command() (string, []string) {
return bash.Command()
5 years ago
}
// Script converts a slice of individual shell commands to
// a powershell script.
func Script(commands []string) string {
return bash.Script(commands)
5 years ago
}