GG(1)

πŸ“¦
version 2.1.1 Β· 2 versions
, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to GG(1) from the General Commands Manual β€” this is the page for gg, the gemini client. Cute, useful, and ready to fetch. πŸ’…βœ¨

✨ SYNOPSIS ✨

gg [-23Nnq] [-C cert] [-d mode] [-H sni] [-K key] [-P host[:port]]
   [-T seconds] gemini://...

🌸 DESCRIPTION 🌸

Okay so gg (short for gemini get, lowkey iconic) fetches the gemini page you hand it and prints it to standard output. That's the main-character move. πŸ¦‹

The options are as follows:

πŸŽ€ the options, as follows πŸŽ€

  • -2 β€” Use TLSv1.2.
  • -3 β€” Use TLSv1.3.
  • -C certificate β€” Use the given client certificate.
  • -d mode β€” Specify what gg should print. mode can be one of:
    • none β€” print only the body of the reply, the default.
    • code β€” print only the response code.
    • header β€” print only the response header.
    • meta β€” print only the response meta.
    • all β€” print the whole response as-is.
  • -H sni β€” Use the given sni host name instead of the one deducted by the IRI or proxy.
  • -K key β€” Specify the key for the certificate. It's mandatory if -C is used.
  • -N β€” Disables the server name verification.
  • -n β€” Check the given IRI for validity, but don't issue any requests.
  • -P host[:port] β€” Connect to the given host and port to do the request instead of the ones extracted by the IRI. port is by default 1965. IPv6 addresses have to be wrapped in braces, for e.g. [::1].
  • -q β€” Don't print server error messages to standard error.
  • -T seconds β€” Kill gg after seconds.

πŸ”₯ EXIT STATUS πŸ”₯

The gg utility exits with zero if the response code was in the 2x range. If a failure occurs, it exits with status code 1. Otherwise, the error code reflects the Gemini response code. So 2x is the slay zone, a total failure is 1, and everything else is the Gemini code doing its thing. πŸ’€

🫢 ACKNOWLEDGEMENTS 🫢

gg uses the β€œFlexible and Economical” UTF-8 decoder written by Bjoern Hoehrmann. Credit where it's due, bestie. 🌸

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ’œ AUTHORS πŸ’œ

The gg utility was written by Omar Polo <op@omarpolo.com>. Author moment, honestly. πŸ‘‘

πŸ™ˆ CAVEATS πŸ™ˆ

Real talk, bestie: gg doesn't perform TOFU (Trust On First Use) or any X.509 certificate validation beyond the name verification.
Also, gg doesn't follow redirects.

okay that's the whole GG(1) page, sourced from Debian and dated May 29, 2024. Bye bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from