util_work_dir

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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

func (t WorkDir) CopyContentsTo(target WorkDir) error

func (WorkDir) CopyFile

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

func (WorkDir) Cwd

func (t WorkDir) Cwd() string

func (WorkDir) Exists

func (t WorkDir) Exists() bool

func (WorkDir) ExistsChild

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

func (t WorkDir) RemoveAll()

func (WorkDir) Root

func (t WorkDir) Root() string

func (WorkDir) WithChildCwd

func (t WorkDir) WithChildCwd(path string) WorkDir

func (WorkDir) WithRootFsCwd

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