// ShouldTrigger decides whether a given application should be triggered or not.
ShouldTrigger decides whether a given application should be triggered or not.
// ShouldTrigger decides whether a given application should be triggered or not .
func (d *OnCommandDeterminer) ShouldTrigger(_ context.Context, _ *model.Application, appCfg *config.GenericDeploymentSpec) (bool, error) {
	if appCfg.Trigger.OnCommand.Disabled {
		return false, nil
	}
	return true, nil
}
func ( d * OnCommandDeterminer ) ShouldTrigger ( _ context . Context , _ * model . Application , appCfg * config . GenericDeploymentSpec ) ( bool , error ) { if appCfg . Trigger . OnCommand . Disabled { return false , nil } return true , nil }
ShouldTrigger decides whether a given application should be triggered or not.
ShouldTrigger decides whether a given application should be triggered or not .