MCPcopy
hub / github.com/cli/cli / Prompt

Method Prompt

internal/config/config.go:158–161  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

156}
157
158func (c *cfg) Prompt(hostname string) gh.ConfigEntry {
159 // Intentionally panic if there is no user provided value or default value (which would be a programmer error)
160 return c.GetOrDefault(hostname, promptKey).Unwrap()
161}
162
163func (c *cfg) PreferEditorPrompt(hostname string) gh.ConfigEntry {
164 // Intentionally panic if there is no user provided value or default value (which would be a programmer error)

Callers 1

NewFromStringFunction · 0.95

Calls 2

GetOrDefaultMethod · 0.95
UnwrapMethod · 0.45

Tested by

no test coverage detected