util

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 9 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 GetRepoName

func GetRepoName(repoUrl string) (string, error)

getRepoName finds upstream repo name from a given repo directory

func GetRepoUrl

func GetRepoUrl(dir string) (string, error)

getRepoName finds upstream repo name from a given repo directory

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