code: func prompt(promptText string) string {
  	fmt.Fprint(cmdmain.Stdout, promptText)
  	sc := bufio.NewScanner(cmdmain.Stdin)
  	sc.Scan()
  	return strings.TrimSpace(sc.Text())
  }
docs: // Prompt the user for an input line.  Return the given input.