-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
triage/needs-infoNeeds more investigation from maintainers or more info from the issue providerNeeds more investigation from maintainers or more info from the issue provider
Description
Hi,
In the example .
I am trying to print the PreRunE of add function starting from child.
Command to run :
- go run main.go add addchild addchildchild
Where output supposed to be :
inside init
inside main
inside initConfig
Add Prerun E : addChildChild Function
Add Prerun E : addChild Function
Add Prerun E : add Function
But Ouptut I am getting is :
inside init
inside main
inside initConfig
Add Prerun E : addChildChild Function
Add Prerun E : addChild Function
Add Prerun E : addChild Function
Add Prerun E : addChild Function
Add Prerun E : addChild Function
.
.
.
Not sure if I am missing something for the concept. I debug the code and parent for addChild is showing add but something is throwing it in infinite and addChild is calling itself again for parent.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage/needs-infoNeeds more investigation from maintainers or more info from the issue providerNeeds more investigation from maintainers or more info from the issue provider