OPNK(1)

πŸ“¦
version 2.7.1 Β· 2 versions
, in debian trixie, ubuntu questing

πŸ’– OPNK πŸ’–

okay bestie, so this is opnk from the General Commands Manual β€” it's the universal open command for offpunk, and yes it's spelled like a punk on purpose, we love a name with attitude πŸ’…


✨ NAME ✨

opnk β€” universal open (like a punk) for offpunk πŸŽ€


🌸 SYNOPSIS 🌸

opnk [-mode MODE] [-cache-validity CACHE_VALIDITY] [INPUT ...]
opnk -h | --help

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: opnk is a universal open command tool, and its whole vibe is "I will figure out how to display literally anything for you". It tries to show any file in the pager less(1) after rendering its content with ansicat(1). Iconic behaviour, no notes.

But if that fails, it does not panic, it does not spiral β€” it just falls back to opening the file with xdg-open(1). Adaptable queen πŸ’…

And if what you handed it is an URL instead of a path? Then it leans on netcache(1) to go get the networked content for you. main character energy fr fr 🌈

πŸ“ Positional arguments

  • INPUT β€” the path to the file, or the URL, that you want to open. that's it, that's the whole job 🫢

🧚 Keyword arguments

  • -h, --help β€” shows you a help message and then exits. your little safety net when you're lost πŸ’–
  • --mode MODE β€” the MODE you want to use to render, and you pick between normal (which is the default, bestie), full or source ✨
  • --cache-validity -CACHE_VALIDITY β€” the maximum age (in second) of the cached version before it redownloads a whole new version. so like, how stale are we willing to tolerate before we go grab fresh content 🌸

πŸ’€ EXIT STATUS πŸ’€

The opnk utility exits 0 on success, and >0 if an error occurs. so 0 = slay, anything above = something went sideways 😭


πŸ‘‘ SEE ALSO πŸ‘‘

ansicat(1), migrate-offpunk-cache(1), netcache(1), offpunk(1), https://offpunk.net/

go read the whole friend group, they're all connected 🫢


πŸ’œ AUTHORS πŸ’œ

Lionel Dricot (Ploum) <offpunk2 at ploum.eu> β€” thank you for your service, king πŸ‘‘


and that's the whole page bestie, every flag, every default, every exit code, all of it, no cap πŸ’–

shipped as part of <strong>Debian</strong>, dated <strong>November 25, 2024</strong> β€” that's the source, the version and the date, all folded into this cute little sign-off, periodt βœ¨πŸŽ€

πŸ“¦ where this page comes from