I want to execute all sub command in cobra. Is there any way to achive this?
think that you want to create tcp packet so you need to use tcp command with flags and ipv4 command with flags. If you want to create dns packet so you will need to dns command with flags, udp command with flags and ipv4 command with flags.
For example,
root <root flags> tcp <tcp flags> ipv4 <ipv4 flags>
OR
root <root flags> dns <dns flags> udp <udp flags> ipv4 <ipv4 flags>
So I want to execute subsub command and sub command when write like above. But only execute last command.