Skip to content

Commit

Permalink
Moving pkl files around
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzbeard committed Mar 13, 2024
1 parent 51c8c46 commit 09db5fa
Show file tree
Hide file tree
Showing 6 changed files with 354 additions and 283 deletions.
8 changes: 7 additions & 1 deletion internal/cmd/build/pkl.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,14 @@ func generatePklClass(typeName string) error {
return err
}

fmt.Println("///", typeName)
fmt.Println("///")
fmt.Println("/// Generated by rain build --pkl-class", typeName)
fmt.Println("module", strings.ToLower(strings.Replace(typeName, "::", ".", -1)))
fmt.Println()

// TODO: Needs to be on a URI somewhere public
fmt.Println("import \"cloudformation.pkl\"")
fmt.Println("import \"../../cloudformation.pkl\"")

classes := make([]*pklDefClass, 0)

Expand Down
Loading

0 comments on commit 09db5fa

Please sign in to comment.