Using Cobra CLI in HTTP services

Yup, exactly. Why is this the pattern here? Is there a reason for this?