Documentation ¶
Index ¶
- func ColoredInstallHelper(version string) string
- func ColoredListHelper() string
- func ColoredVersion(version string) string
- func ErrorWithHelp(help string) error
- func ExitWithError(message string, err error)
- func FindRequiredVersionInFile(filepath string, availableVersions []string) (string, error)
- func FindTerraformFiles() ([]string, error)
- func IsPreReleaseVersion(version string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColoredInstallHelper ¶ added in v0.1.4
ColoredInstallHelper returns a colored install helper string
func ColoredListHelper ¶ added in v0.1.9
func ColoredListHelper() string
func ColoredVersion ¶ added in v0.1.4
ColoredVersion returns a colored version string
func ErrorWithHelp ¶ added in v0.1.4
ErrorWithHelp returns an error with a help message
func ExitWithError ¶ added in v0.1.4
ExitWithError prints an error message and exits with status code 1
func FindRequiredVersionInFile ¶ added in v0.1.1
FindRequiredVersionInFile finds the required Terraform version in a given .tf file (using required_version = ">= x.x.x")
func FindTerraformFiles ¶ added in v0.1.1
FindTerraformFiles finds all .tf files in the current directory (module)
func IsPreReleaseVersion ¶
IsPreReleaseVersion checks if the given version is a Terraform pre-release version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.