Skip to content

Commit

Permalink
Merge pull request #504 from ericzbeard/fix-501
Browse files Browse the repository at this point in the history
Add node-style to merge
  • Loading branch information
ericzbeard authored Aug 21, 2024
2 parents 800056f + d83169b commit e8f03e1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/cmd/merge/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ var Cmd = &cobra.Command{
func init() {
Cmd.Flags().StringVarP(&outFn, "output", "o", "", "Output merged template to a file")
Cmd.Flags().BoolVarP(&forceMerge, "force", "f", false, "Don't warn on clashing attributes; rename them instead. Note: this will not rename Refs, GetAtts, etc.")
Cmd.Flags().StringVar(&format.NodeStyle, "node-style", "", format.NodeStyleDocs)
}
8 changes: 8 additions & 0 deletions test/templates/merge1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Parameters:
Bar:
Type: String

Resources:
Bucket:
Type: AWS::S3::Bucket

11 changes: 11 additions & 0 deletions test/templates/merge2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Parameters:
Foo:
Type: String

Resources:
MyEventBridgeSchedule:
Type: AWS::Scheduler::Schedule
Properties:
FlexibleTimeWindow:
Mode: "OFF"

0 comments on commit e8f03e1

Please sign in to comment.