dirs

package
v0.0.0-...-1839d03 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTiltDevDir

func GetTiltDevDir() (string, error)

TiltDevDir returns the root settings directory. For legacy reasons, we use ~/.windmill if it exists. Otherwise, we use ~/.tilt-dev

Types

type TiltDevDir

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

func NewTiltDevDirAt

func NewTiltDevDirAt(dir string) *TiltDevDir

Create a .tilt-dev dir at an arbitrary directory. Useful for testing.

func UseTiltDevDir

func UseTiltDevDir() (*TiltDevDir, error)

func (*TiltDevDir) Abs

func (d *TiltDevDir) Abs(p string) (string, error)

func (*TiltDevDir) MkdirAll

func (d *TiltDevDir) MkdirAll(p string) error

func (*TiltDevDir) OpenFile

func (d *TiltDevDir) OpenFile(p string, flag int, perm os.FileMode) (*os.File, error)

func (*TiltDevDir) ReadFile

func (d *TiltDevDir) ReadFile(p string) (string, error)

func (*TiltDevDir) Root

func (d *TiltDevDir) Root() string

func (*TiltDevDir) WriteFile

func (d *TiltDevDir) WriteFile(p, text string) error

Jump to

Keyboard shortcuts

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