code: func (g *GPG) CreatePrivateKey(ctx context.Context) error {
  	args := []string{"--gen-key"}
  	cmd := exec.CommandContext(ctx, g.binary, args...)
  	cmd.Stdin = os.Stdin
  	cmd.Stdout = os.Stdout
  	cmd.Stderr = os.Stderr
  
  	out.Debug(ctx, "gpg.CreatePrivateKey: %s %+v", cmd.Path, cmd.Args)
  	if err := cmd.Run(); err != nil {
  		return errors.Wrapf(err, "failed to run command: '%s %+v'", cmd.Path, cmd.Args)
  	}
  
  	g.privKeys = nil
  	g.pubKeys = nil
  	return nil
  }
docs: // CreatePrivateKey will create a new GPG key in interactive mode