Documentation ¶
Index ¶
- func GetTiltDevDir() (string, error)
- type TiltDevDir
- func (d *TiltDevDir) Abs(p string) (string, error)
- func (d *TiltDevDir) MkdirAll(p string) error
- func (d *TiltDevDir) OpenFile(p string, flag int, perm os.FileMode) (*os.File, error)
- func (d *TiltDevDir) ReadFile(p string) (string, error)
- func (d *TiltDevDir) Root() string
- func (d *TiltDevDir) WriteFile(p, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTiltDevDir ¶
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) MkdirAll ¶
func (d *TiltDevDir) MkdirAll(p string) error
func (*TiltDevDir) Root ¶
func (d *TiltDevDir) Root() string
func (*TiltDevDir) WriteFile ¶
func (d *TiltDevDir) WriteFile(p, text string) error
Click to show internal directories.
Click to hide internal directories.