repo

package
v0.0.0-...-980e7ab Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Roots in relation to the root directory of the repository.
	ProjectRoot = "."
	ClassicRoot = "v1"
	FlexRoot    = "v2"
	ItRoot      = "it"
)
View Source
const (
	RootDirName = "DataflowTemplates"
)

Variables

This section is empty.

Functions

func GetAllPomFiles

func GetAllPomFiles(dir string) ([]string, error)

Gets all the POM files under `dir`, where `dir` is a relative path from the root of the repository.

func GetModulesForPaths

func GetModulesForPaths(paths []string) map[string][]string

Gets all the unique modules for files whose path from the root directory is in `paths`. Example paths:

pom.xml -> Mapped to Classic root
v2/cdc-parent/pom.xml -> Mapped to cdc-parent under Flex Templates

The return value has the following properties:

Key: The path of the root module, equivalent to ClassicRoot, FlexRoot, etc.
Value: List of modules (e.g. cdc-parent, cdc-parent/cdc-common). An empty entry represents the root itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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