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

Function userIssuedNewTriggerCmd

commands/trigger.go:804–811  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

802}
803
804func userIssuedNewTriggerCmd() error {
805 if len(Flags.trigger.feedParam) > 0 || len(Flags.trigger.triggerParam) > 0 {
806 whisk.Debug(whisk.DbgError, "User tries to mix use of --param or --param-file flags with --feed-param or --trigger-param")
807 errStr := wski18n.T("Incorrect usage. Cannot combine --feed-param or --trigger-param flag with neither --param nor --param-file flag")
808 return whisk.MakeWskError(errors.New(errStr), whisk.NOT_ALLOWED, whisk.DISPLAY_MSG, whisk.NO_DISPLAY_USAGE)
809 }
810 return nil
811}

Callers 2

CreateMethod · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected