util

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func FindFilesWithPattern added in v1.1.7

func FindFilesWithPattern(dir string, pattern string, skipPaths []string) ([]string, error)

func GetRepoName

func GetRepoName(repoUrl string) (string, error)

getRepoName finds upstream repo name from a given repo directory

func GetRepoUrlAndRootPath added in v1.1.8

func GetRepoUrlAndRootPath(dir string) (string, string, error)

GetRepoUrlAndRootPath finds upstream repo URL and the root local path

func PromptSelect

func PromptSelect(label string, items []string) string

PromptSelect prompts a user to select a value from given items.

func WalkTerraformDirs

func WalkTerraformDirs(topLevelPath string) ([]string, error)

walkTerraformDirs traverses a provided path to return a list of directories that hold terraform configs while skiping internal folders that have a .terraform.* prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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