MCPcopy
hub / github.com/cli/cli / InputHostname

Method InputHostname

internal/prompter/prompter.go:551–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549}
550
551func (p *surveyPrompter) InputHostname() (string, error) {
552 var result string
553 err := p.ask(
554 &survey.Input{
555 Message: "Hostname:",
556 }, &result, survey.WithValidator(func(v interface{}) error {
557 return ghinstance.HostnameValidator(v.(string))
558 }))
559 return result, err
560}
561
562func (p *surveyPrompter) MarkdownEditor(prompt, defaultValue string, blankAllowed bool) (string, error) {
563 var result string

Callers

nothing calls this directly

Calls 2

askMethod · 0.95
HostnameValidatorFunction · 0.92

Tested by

no test coverage detected