utils

package
v0.8.20230131140132 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeDigest

func DecodeDigest(base64Encoded string) (string, error)

func ProvenanceFile

func ProvenanceFile(repoName string) string

func StartSpinner

func StartSpinner(message string) *spinner.Spinner

Types

type Cmd added in v0.8.20230131140132

type Cmd struct {
	Name    string
	SubCmd  string
	Flags   []string
	Args    []string
	WorkDir string
	Runner  CmdRunner
}

func NewCmd added in v0.8.20230131140132

func NewCmd(
	name string,
	subCmd string,
	flags []string,
	args []string,
	workDir string,
) Cmd

func (Cmd) Run added in v0.8.20230131140132

func (c Cmd) Run() (string, error)

func (*Cmd) WithRunner added in v0.8.20230131140132

func (c *Cmd) WithRunner(runner CmdRunner)

type CmdRunner added in v0.8.20230131140132

type CmdRunner interface {
	CreateCmd() CreateCmd
}

type CreateCmd added in v0.8.20230131140132

type CreateCmd = func(name string, arg ...string) *exec.Cmd

type ExecCmd added in v0.8.20230131140132

type ExecCmd struct{}

func (ExecCmd) CreateCmd added in v0.8.20230131140132

func (c ExecCmd) CreateCmd() CreateCmd

Jump to

Keyboard shortcuts

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