util_work_dir

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkDir

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

func NewTempDir

func NewTempDir(name string, root string) (WorkDir, error)

func NewWorkDir

func NewWorkDir(path string) WorkDir

func (WorkDir) CopyContentsTo added in v0.0.12

func (t WorkDir) CopyContentsTo(target WorkDir) error

func (WorkDir) CopyFile added in v0.0.13

func (t WorkDir) CopyFile(from string, to string) error

func (WorkDir) Cwd

func (t WorkDir) Cwd() string

func (WorkDir) Exists added in v0.0.12

func (t WorkDir) Exists() bool

func (WorkDir) ExistsChild added in v0.0.13

func (t WorkDir) ExistsChild(path string) bool

func (WorkDir) NewCommand

func (t WorkDir) NewCommand(command string, args ...string) util_cmd.Command

func (WorkDir) ReadFile

func (t WorkDir) ReadFile(name string) (string, error)

func (WorkDir) RemoveAll added in v0.0.12

func (t WorkDir) RemoveAll()

func (WorkDir) Root

func (t WorkDir) Root() string

func (WorkDir) WithChildCwd added in v0.0.15

func (t WorkDir) WithChildCwd(path string) WorkDir

func (WorkDir) WithRootFsCwd added in v0.0.15

func (t WorkDir) WithRootFsCwd(path string) WorkDir

func (WorkDir) WriteFile

func (t WorkDir) WriteFile(name string, contents string) error

Jump to

Keyboard shortcuts

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