Skip to content

Commit

Permalink
Add function description
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimansk committed Jul 21, 2023
1 parent 700d0aa commit 11008d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kn/commands/flags/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type SinkFlags struct {
SinkMappings map[string]schema.GroupVersionResource
}

// NewSinkFlag is a constructor function to create SinkFlags from provided map
func NewSinkFlag(mapping map[string]schema.GroupVersionResource) *SinkFlags {
return &SinkFlags{
SinkMappings: mapping,
Expand Down

0 comments on commit 11008d1

Please sign in to comment.