Git::Raw::Cred(3pm)

πŸ’– Git::Raw::Cred πŸ’–

okay so bestie, welcome to Git::Raw::Cred(3pm) β€” that's the page name, it's from the User Contributed Perl Documentation section, and no, it is not boring, it's the lil holder for your creds ✨

πŸŽ€ VERSION πŸŽ€

version 0.90 β€” yes she's got a version, she's official πŸ‘‘


🌸 DESCRIPTION 🌸

A Git::Raw::Cred object is literally just the place where credentials live. That's the whole job. She holds them. Iconic behavior. 🫢

⚠️ WARNING: the API of this module is unstable and may change without warning. Not me being flaky β€” it's documented! Any change will be appropriately documented in the changelog, so no cap, you'll know. πŸ’€

✨ METHODS ✨

🌈 userpass( $user, $pass )

Makes a brand new credential object out of the username and password you hand her. Classic. Simple. Slays. πŸ’…

πŸ”‘ sshkey( $user, $public, $private [, $pass ] )

Builds a new credential object from an SSH public and private key file, plus optionally the password of the private key ($pass). 🌸

🚨 Heads up: if SSH support was not enabled at build-time, this method will always return undef. Like, always. Don't fight it.

🧚 sshagent( $user )

Creates a new credential object whose whole personality is querying an ssh-agent. πŸ’œ

🚨 Same deal: if SSH support wasn't enabled at build-time, this method will always return undef. Periodt.

πŸ’¬ sshinteractive( $user, $callback )

Creates a new credential object based on interactive authentication. Here's the vibe: that $callback gets invoked when the remote-side issues a challenge. πŸ‘€

It receives these parameters: $name, $instruction and @prompts. And yes β€” any of the parameters passed to the callback may be undef. Anything can be undef. It's giving chaos but it's fine. πŸ™ˆ

Each $prompt entry inside @prompts is a hash reference that may contain:

  • "text" β€” the text for the prompt πŸ’Œ
  • "echo" β€” a parameter indicating whether the response of the challenge is safe to be echoed. So if that says no, do NOT be out here echoing it, bestie 😭

The callback should return a list of responses, one for each prompt. One. For. Each. Prompt. 🎯

🚨 And (you guessed it) if SSH support was not enabled at build-time, this method will always return undef. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

  • Alessandro Ghedini <alexbio@cpan.org>
  • Jacques Germishuys <jacquesg@cpan.org>

kings, honestly. 🫢


Copyright 2012 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information. 🌈


and that's the whole page, ty for coming to my ted talk πŸŽ€ generared by perl v5.42.3 on 2026-08-19, and the page is Git::Raw::Cred(3pm) β€” go forth and authenticate responsibly, ily, bye πŸ’…βœ¨

πŸ“¦ where this page comes from