MCPcopy
hub / github.com/cli/cli / IsSome

Method IsSome

pkg/option/option.go:111–113  ·  view source on GitHub ↗

IsSome returns true if the [Option] is a [Some] variant.

()

Source from the content-addressed store, hash-verified

109
110// IsSome returns true if the [Option] is a [Some] variant.
111func (o Option[T]) IsSome() bool {
112 return o.present
113}
114
115// IsNone returns true if the [Option] is a [None] variant.
116func (o Option[T]) IsNone() bool {

Callers 4

ParseIssuesFromArgsFunction · 0.80
ExampleOption_IsSomeFunction · 0.80
TestIsSomeFunction · 0.80
GetOrDefaultMethod · 0.80

Calls

no outgoing calls

Tested by 2

ExampleOption_IsSomeFunction · 0.64
TestIsSomeFunction · 0.64