code: func getPassPhrase(prompt string, confirmation bool, i int, passwords []string) string {
  	// If a list of passwords was supplied, retrieve from them
  	if len(passwords) > 0 {
  		if i < len(passwords) {
  			return passwords[i]
  		}
  		return passwords[len(passwords)-1]
  	}
  	// Otherwise prompt the user for the password
  	if prompt != "" {
  		fmt.Println(prompt)
  	}
  	password, err := console.Stdin.PromptPassword("Passphrase: ")
  	if err != nil {
  		utils.Fatalf("Failed to read passphrase: %v", err)
  	}
  	if confirmation {
  		confirm, err := console.Stdin.PromptPassword("Repeat passphrase: ")
  		if err != nil {
  			utils.Fatalf("Failed to read passphrase confirmation: %v", err)
  		}
  		if password != confirm {
  			utils.Fatalf("Passphrases do not match")
  		}
  	}
  	return password
  }
docs: // getPassPhrase retrieves the password associated with an account, either fetched
  // from a list of preloaded passphrases, or requested interactively from the user.