Documentation
¶
Index ¶
- func Clean(raw string) (string, error)
- func Hidden(name string) bool
- func WindowsPathToWSL(raw string) (string, bool)
- type Path
- type Workspace
- func (w *Workspace) DefaultCWD() string
- func (w *Workspace) DefaultDisplay() string
- func (w *Workspace) Relative(abs string) (string, error)
- func (w *Workspace) ResolveExisting(raw string) (Path, error)
- func (w *Workspace) ResolveForWrite(raw string) (Path, error)
- func (w *Workspace) Root() string
- func (w *Workspace) SetDefaultCWD(raw string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WindowsPathToWSL ¶ added in v0.6.0
WindowsPathToWSL 把绝对 Windows 盘符路径转换为 WSL /mnt 路径。
Types ¶
type Workspace ¶
type Workspace struct {
// contains filtered or unexported fields
}
func (*Workspace) DefaultCWD ¶
func (*Workspace) DefaultDisplay ¶
Click to show internal directories.
Click to hide internal directories.