Documentation
¶
Index ¶
- func EnsureNewline(b []byte) []byte
- func FindCueMod(target string) (dir string, err error)
- func FindRootLeaf(target string) (root string, leaf string, err error)
- func MakeWalkFunc(a *txtar.Archive) fs.WalkDirFunc
- func Remove(ctx context.Context, path string)
- func RunInteractiveCmd(ctx context.Context, name string, args ...string) error
- type RunResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNewline ¶
EnsureNewline adds a trailing newline if not already there.
func FindCueMod ¶ added in v0.98.0
FindCueMod returns the root module location containing the cue.mod.
func FindRootLeaf ¶ added in v0.98.0
func MakeWalkFunc ¶
func MakeWalkFunc(a *txtar.Archive) fs.WalkDirFunc
Types ¶
type RunResult ¶
runResult holds the stdout and stderr of a command.
Click to show internal directories.
Click to hide internal directories.