utils

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsLink(root, link string) string

AbsLink will return absolute path for the given link if its not already abs. given root must be an absolute path

func ReCreate

func ReCreate(path string) error

ReCreate removes dir and any children it contains and creates new dir on the same path

func ReadAbsLink(link string) (string, error)

ReadAbsLink returns the destination of the named symbolic link. return path will be absolute

func RunCommand

func RunCommand(ctx context.Context, log *slog.Logger, envs []string, cwd string, command string, args ...string) (string, error)

RunCommand runs given command with given arguments on given CWD

func SplitAbs

func SplitAbs(abs string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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