commands

package
v0.8.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommands

func RunCommands(ctx context.Context, in Commands, info *server.ExecutionInfo) (interface{}, error)

nolint

Types

type Command

type Command struct {
	Command         string `json:"command"`
	Envs            []Env  `json:"envs"`
	StopOnError     bool   `json:"stop"`
	SuppressCommand bool   `json:"suppress_command"`
	SuppressOutput  bool   `json:"suppress_output"`
}

nolint

type Commands

type Commands struct {
	Commands []Command `json:"commands"`
}

type CommandsResponse

type CommandsResponse struct {
	Error  string
	Output interface{}
}

nolint

type Env

type Env struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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