MCPcopy Index your code
hub / github.com/cli/cli / runInputHostname

Function runInputHostname

pkg/cmd/preview/prompter/prompter.go:253–261  ·  view source on GitHub ↗
(p prompter.Prompter, io *iostreams.IOStreams)

Source from the content-addressed store, hash-verified

251}
252
253func runInputHostname(p prompter.Prompter, io *iostreams.IOStreams) error {
254 fmt.Fprintln(io.Out, "Demonstrating Hostname")
255 hostname, err := p.InputHostname()
256 if err != nil {
257 return err
258 }
259 fmt.Fprintf(io.Out, "Hostname: %s\n", hostname)
260 return nil
261}
262
263func runMarkdownEditor(p prompter.Prompter, io *iostreams.IOStreams) error {
264 defaultText := "default text value"

Callers

nothing calls this directly

Calls 1

InputHostnameMethod · 0.65

Tested by

no test coverage detected