Skip to content

Commit

Permalink
add function updates in project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Aug 11, 2021
1 parent 173a864 commit 4c5a722
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/commands/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ func (d *DeployCmd) processAddedFunctions(localFuncs []string) []string {
addedFunctions := d.addedFunctions(localFuncs)
if len(addedFunctions) > 0 {
log.Printf("added - %s", strings.Join(addedFunctions, ","))
for _, af := range addedFunctions {
d.project.AddFunction(mantil.Function{Name: af})
}
}
return addedFunctions
}
Expand Down Expand Up @@ -142,6 +145,9 @@ func (d *DeployCmd) processRemovedFunctions(localFuncs []string) []string {
removedFunctions := d.removedFunctions(localFuncs)
if len(removedFunctions) > 0 {
log.Printf("removed - %s", strings.Join(removedFunctions, ","))
for _, rf := range removedFunctions {
d.project.RemoveFunction(rf)
}
}
return removedFunctions
}
Expand Down

0 comments on commit 4c5a722

Please sign in to comment.