shx

package
v0.0.0-...-78d16bc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFiles

func FindFiles(root string, opts FindFilesOpts) ([]string, error)

func GetEnvVal

func GetEnvVal(key, def string) string

func GetWorkingDirectory

func GetWorkingDirectory() (string, error)

Types

type AsyncCommand

type AsyncCommand struct {
	// contains filtered or unexported fields
}

func AsyncCmdf

func AsyncCmdf(format string, a ...interface{}) (*AsyncCommand, error)

func MustAsyncCmdf

func MustAsyncCmdf(format string, a ...interface{}) *AsyncCommand

func (AsyncCommand) MustStart

func (c AsyncCommand) MustStart()

func (AsyncCommand) MustStop

func (c AsyncCommand) MustStop()

func (AsyncCommand) Start

func (c AsyncCommand) Start() error

func (AsyncCommand) Stop

func (c AsyncCommand) Stop() error

type Command

type Command struct {
	shx.PreparedCommand
}

func CmdCtxf

func CmdCtxf(ctx context.Context, format string, a ...interface{}) (*Command, error)

func Cmdf

func Cmdf(format string, a ...interface{}) (*Command, error)

func MustCmdf

func MustCmdf(format string, a ...interface{}) *Command

func (*Command) In

func (c *Command) In(dir string) *Command

func (*Command) MustRun

func (c *Command) MustRun()

func (*Command) MustRunE

func (c *Command) MustRunE()

func (*Command) MustRunS

func (c *Command) MustRunS()

func (*Command) MustRunV

func (c *Command) MustRunV()

func (*Command) Run

func (c *Command) Run() error

func (*Command) RunE

func (c *Command) RunE() error

func (*Command) RunS

func (c *Command) RunS() error

func (*Command) RunV

func (c *Command) RunV() error

func (*Command) WithArg

func (c *Command) WithArg(name, val string) *Command

func (*Command) WithEnv

func (c *Command) WithEnv(name, val string) *Command

type FindFilesOpts

type FindFilesOpts struct {
	Ext          []string
	IgnorePrefix []string
}

Jump to

Keyboard shortcuts

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