Skip to content

Commit

Permalink
added function to sls block type (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemavni committed May 14, 2023
1 parent 319f530 commit 146b043
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serverless/structure/serverless_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

const FunctionTagsAttributeName = "tags"
const FunctionsSectionName = "functions"
const FunctionType = "function"

type ServerlessParser struct {
YamlParser types.YamlParser
Expand Down Expand Up @@ -132,6 +133,7 @@ func (p *ServerlessParser) ParseFile(filePath string) ([]structure.IBlock, error
Lines: *lines,
TagLines: tagsLines,
Name: funcName,
Type: FunctionType,
},
}

Expand Down

0 comments on commit 146b043

Please sign in to comment.