helpers

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColoredInstallHelper added in v0.1.4

func ColoredInstallHelper(version string) string

ColoredInstallHelper returns a colored install helper string

func ColoredListHelper added in v0.1.9

func ColoredListHelper() string

func ColoredVersion added in v0.1.4

func ColoredVersion(version string) string

ColoredVersion returns a colored version string

func ErrorWithHelp added in v0.1.4

func ErrorWithHelp(help string) error

ErrorWithHelp returns an error with a help message

func ExitWithError added in v0.1.4

func ExitWithError(message string, err error)

ExitWithError prints an error message and exits with status code 1

func FindRequiredVersionInFile added in v0.1.1

func FindRequiredVersionInFile(filepath string, availableVersions []string) (string, error)

FindRequiredVersionInFile finds the required Terraform version in a given .tf file (using required_version = ">= x.x.x")

func FindTerraformFiles added in v0.1.1

func FindTerraformFiles() ([]string, error)

FindTerraformFiles finds all .tf files in the current directory (module)

func IsPreReleaseVersion

func IsPreReleaseVersion(version string) bool

IsPreReleaseVersion checks if the given version is a Terraform pre-release version

Types

This section is empty.

Jump to

Keyboard shortcuts

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