Simplify changes to the default cobra command
Created originally on Bitbucket by Houzéfa Abbasbhay
Hey,
[Not sure whether this is a good suggestion, but here it goes...]
I think it would be useful to have ways of changing either information about the program embedding go-xbus
, or the RootCmd
command at least.
Currently, this is doable via:
import xbusCmd "bitbucket.org/orus-io/go-xbus/cmd"
// Fiddle with the command declared by go-xbus.
xbusCmd.RootCmd.Use = "..."
xbusCmd.RootCmd.Short = "..."
xbusCmd.RootCmd.Long = "..."
I find that hacky and would prefer a "predefined" way. Maybe some meta-data I can provide about my program...