OPNK(1)
π 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 betweennormal(which is the default, bestie),fullorsourceβ¨--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
- debian trixie: offpunk 2.7.1-1 Β· AGPL-3.0-or-later
- ubuntu questing: offpunk 2.7.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms