code: func AskForKeyImport(ctx context.Context, key string, names []string) bool {
  	if ctxutil.IsAlwaysYes(ctx) {
  		return true
  	}
  	if !ctxutil.IsInteractive(ctx) {
  		return false
  	}
  
  	ok, err := AskForBool(ctx, fmt.Sprintf("Do you want to import the public key '%s' (Names: %+v) into your keyring?", key, names), false)
  	if err != nil {
  		return false
  	}
  
  	return ok
  }
docs: // AskForKeyImport asks for permissions to import the named key