command

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(command string, opts ...Opt) it.Command

New takes zero or more functional options and return a new command.

func SHA256

func SHA256(cmd it.Command) string

SHA256 returns the SHA256 sum of the command.

func WithEnvVar

func WithEnvVar(key, value string) func(*cmd)

WithEnvVar sets the environment variable.

func WithEnvVars

func WithEnvVars(vars map[string]string) func(*cmd)

WithEnvVars sets the environment variables.

Types

type Opt

type Opt func(*cmd)

Opt is a functional option.

Jump to

Keyboard shortcuts

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