OPNK(1)

πŸ’– OPNK(1) β€” the universal open, but make it punk πŸ’–

General Commands Manual Β· openk(1) Β· bestie edition πŸŽ€


✨ NAME ✨

openk β€” universal open (like a punk) for offpunk πŸ¦‹


🌸 SYNOPSIS 🌸

openk [-mode MODE] [-linkmode LINKMODE] [-cache-validity CACHE_VALIDITY]
      [INPUT ...]
openk -h | --help

πŸ’… DESCRIPTION πŸ’…

okay so openk is literally a universal open command tool, and here's the tea: it will try to display any file in the pager less(1) after rendering its content with ansicat(1). that's the main character move ✨

and if that fails? no biggie, openk will fallback to opening the file with xdg-open(1). slay, always got a backup plan πŸ’…

and if you hand it a URL as input instead of a path, openk will rely on netcache(1) to get the networked content. periodt. πŸ”₯


πŸŽ€ Positional arguments πŸŽ€

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

🧚 Keyword arguments 🧚

  • -h, --help β€” Show a help message and exit. classic. iconic. never gets old πŸ’–
  • --mode MODE β€” the MODE to use to render, so you choose between normal (default), full or source ✨
  • --linkmode LINKMODE β€” the LINKMODE to use to render links. available are none (default) and end. πŸ¦‹ heads up bestie: this option will not effect render mode source. no cap.
  • --cache-validity -CACHE_VALIDITY β€” maximum age (in second) of the cached version before redownloading a new version. so like, how stale is too stale for you? πŸ“

😭 EXIT STATUS 😭

the openk utility exits 0 on success, and >0 if an error occurs. simple as that, no drama πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

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


πŸ‘‘ AUTHORS πŸ‘‘

Lionel Dricot (Ploum) <offpunk2 at ploum.eu> πŸ’œ


Debian Β· November 25, 2024 Β· OPNK(1)

and that's the whole page bestie, mwah πŸ’‹ go open something cute, iykyk 🌈⭐

πŸ“¦ where this page comes from