work

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPaths

func ExpandPaths(originalWorkingDir string, paths []string) ([]string, error)

ExpandPaths expands the paths passed in by the user, resolving any `...` wildcards to the subdirectories of the path passed in. The paths are made relative to the repo root. By this point, if we were in a subdirectory of the repo, puku will have changed its working directory to the repo root, but recorded the original working directory. The original working directory is passed in here, so we can join any relative paths with that directory to make them relative to the repo root.

func FindRoot

func FindRoot() (string, error)

FindRoot finds the root of the workspace

func MustExpandPaths

func MustExpandPaths(origWD string, paths []string) []string

Types

This section is empty.

Directories

Path Synopsis
test_data
baz
foo

Jump to

Keyboard shortcuts

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