toolkit

package module
v0.0.0-...-0177848 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 15 Imported by: 0

README

GitHub Actions Go Toolkit

Documentation

Index

Constants

View Source
const (
	IS_WINDOWS = runtime.GOOS == "windows"
	IS_DARWIN  = runtime.GOOS == "darwin"
	USER_AGENT = "maurerlabs/actions/toolkit"
)

Variables

This section is empty.

Functions

func AddFlagFromEnv

func AddFlagFromEnv(flags *[]string, flagFormat int, name, key string)

func AddPath

func AddPath(val string)

func CacheTool

func CacheTool(path, name, version, arch string) string

func Command

func Command(val string, args ...string)

func Debug

func Debug(msg string)

func DownloadFile

func DownloadFile(url string, options ...*DownloadOptions) string

func EndGroup

func EndGroup()

func Error

func Error(msg string)

func ExportVar

func ExportVar(key, val string)

func Extract7z

func Extract7z()

func ExtractTar

func ExtractTar(path string, options ...*ExtractOptions) string

func ExtractZip

func ExtractZip()

func Find

func Find()

func FindAllVersions

func FindAllVersions()

func GetInput

func GetInput(key string, options ...*InputOptions) string

func GetState

func GetState(key string, options ...*InputOptions) string

func GoToWorkspace

func GoToWorkspace(keys ...string)

func GunzipFile

func GunzipFile(path string, options ...*ExtractOptions) string

func Info

func Info(msg string, args ...interface{})

func InstallBin

func InstallBin(paths ...string)

func MakeExecutable

func MakeExecutable(paths ...string)

func MkdirRand

func MkdirRand(base string) string

func Pause

func Pause() func()

func SaveState

func SaveState(key, val string)

func SetFailed

func SetFailed(msg string)

func SetOutput

func SetOutput(key string, val interface{})

func SetSecret

func SetSecret(val string)

func StartGroup

func StartGroup(key string)

func Warning

func Warning(msg string)

Types

type DownloadOptions

type DownloadOptions struct {
	OutputName string
	OutputPath string
}

type ExecOptions

type ExecOptions struct {
	Cwd    string
	Silent bool
}

type ExtractOptions

type ExtractOptions struct {
	KeepContainerDir  bool
	DeleteArchiveFile bool
}

type InputOptions

type InputOptions struct {
	Required bool
	Fallback string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL