MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / userIndicatesToUseOldTriggerCommand

Function userIndicatesToUseOldTriggerCommand

commands/trigger.go:800–802  ·  view source on GitHub ↗

if users are 1. creating a trigger without any feed or parameters 2. creating a trigger using --param flag then we use the old way to create the trigger.

()

Source from the content-addressed store, hash-verified

798// 2. creating a trigger using --param flag
799//then we use the old way to create the trigger.
800func userIndicatesToUseOldTriggerCommand() bool {
801 return len(Flags.common.param) > 0 || (len(Flags.trigger.feedParam) == 0 && len(Flags.common.param) == 0 && len(Flags.trigger.triggerParam) == 0)
802}
803
804func userIssuedNewTriggerCmd() error {
805 if len(Flags.trigger.feedParam) > 0 || len(Flags.trigger.triggerParam) > 0 {

Callers 2

CreateMethod · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected