robot

package
v0.0.0-...-a79fb06 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

This package hold robot configuration related things.

Index

Constants

This section is empty.

Variables

View Source
var (
	GoosPattern   = regexp.MustCompile("(?i:(windows|darwin|linux))")
	GoarchPattern = regexp.MustCompile("(?i:(amd64|arm64))")
)

Functions

func DetectConfigurationName

func DetectConfigurationName(directory string) string

func PlainEnvironment

func PlainEnvironment(inject []string, full bool) []string

func PlatformAcceptableFile

func PlatformAcceptableFile(architecture, operatingSystem, filename string) bool

Types

type Robot

type Robot interface {
	IgnoreFiles() []string
	AvailableTasks() []string
	DefaultTask() Task
	TaskByName(string) Task
	UsesConda() bool
	CondaConfigFile() string
	PreRunScripts() []string
	RootDirectory() string
	HasHolozip() bool
	Holozip() string
	Validate() (bool, error)
	Diagnostics(*common.DiagnosticStatus, bool)
	DependenciesFile() (string, bool)

	WorkingDirectory() string
	ArtifactDirectory() string
	FreezeFilename() string
	Paths() pathlib.PathParts
	PythonPaths() pathlib.PathParts
	SearchPath(location string) pathlib.PathParts
	RobotExecutionEnvironment(location string, inject []string, full bool) []string
}

func LoadRobotYaml

func LoadRobotYaml(filename string, visible bool) (Robot, error)

type Setup

type Setup map[string]string

func EnvironmentSetupFrom

func EnvironmentSetupFrom(content []byte) (Setup, error)

func LoadEnvironmentSetup

func LoadEnvironmentSetup(filename string) (Setup, error)

func (Setup) AsEnvironment

func (it Setup) AsEnvironment() []string

type Task

type Task interface {
	Commandline() []string
}

Jump to

Keyboard shortcuts

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