Skip to content

Commit

Permalink
Merge pull request #3 from golingon/terragen-txtar-archive
Browse files Browse the repository at this point in the history
terragen txtar archive
  • Loading branch information
veggiemonk committed Apr 10, 2024
2 parents 2c492f1 + 55f7073 commit d6e1fef
Show file tree
Hide file tree
Showing 15 changed files with 6,923 additions and 614 deletions.
153 changes: 0 additions & 153 deletions cmd/tools/filtersb/cli.go

This file was deleted.

3 changes: 1 addition & 2 deletions pkg/internal/terrajen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ type ProviderGenerator struct {
// E.g. github.com/golingon/lingon/gen/aws
GoProviderPkgPath string
// GeneratedPackageLocation is the directory on the filesystem where the
// generated
// Go files will be created.
// generated Go files will be created.
// The GoProviderPkgPath path must match the location of the generated files
// so that they can be imported correctly.
// E.g. if we are in a Go module called "my-module" and we generate the
Expand Down
7 changes: 7 additions & 0 deletions pkg/internal/terrajen/subpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import (
"github.com/veggiemonk/strcase"
)

// SubPkgFile generates a Go file for the given schema.
// The schema should represent a sub-package or be the sub-types of a top-level
// provider/resource/data source.
//
// For example, the AWS provider has a top-level provider config, with many
// nested subtypes.
// SubPkgFile would generate a file containing all the subtypes.
func SubPkgFile(s *Schema) (*jen.File, bool) {
// Skip sub pkg if there are no blocks to render
if s.graph.isEmpty() {
Expand Down
Loading

0 comments on commit d6e1fef

Please sign in to comment.