MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewWebFlags

Function NewWebFlags

pkg/machinescommon/web.go:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 6

NewCreateFlagsFunction · 0.92
NewCreateFlagsFunction · 0.92
NewViewFlagsFunction · 0.92
NewCreateFlagsFunction · 0.92
NewViewFlagsFunction · 0.92
NewCreateFlagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected