Discover Packages
github.com/AlexNabokikh/tfsort
tsort
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Jan 25, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
validateFilePath returns an error if the given path is empty, does not exist, or is a directory.
Ingestor is a struct that contains the logic for parsing Terraform files.
Ingestor returns a new Ingestor instance.
CanIngest reads the file at the given path and checks if it is a valid Terraform file
based on its extension and contents.
Parse extracts variable and output blocks from the Terraform file at the given path,
sorts them alphabetically by name, and writes the output to the specified file or to stdout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.