()
| 23 | } |
| 24 | |
| 25 | func NewWebFlags() *WebFlags { |
| 26 | return &WebFlags{ |
| 27 | Web: flag.New[bool](FlagWeb, false), |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func RegisterWebFlag(cmd *cobra.Command, flags *WebFlags) { |
| 32 | cmd.Flags().BoolVarP(&flags.Web.Value, flags.Web.Name, "w", false, "Open in web browser") |
no outgoing calls
no test coverage detected