rootCmd not binding variables when moved to another package #1354
Unanswered
pantelis-karamolegkos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Asking here before filing an issue...
This (everything in the
main.go
) worksTHIS, where the definition of the
rootCmd
and the flag addition has been moved to another package (cmd
) does not worki.e. in the second case, the flag
allow-origin
is not bound (!)What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions