ssft.sh(1)

✨ ssft.sh β€” SSFT manual, bestie edition ✨

okay so you found the ssft.sh man page and honestly? slay. it's from the SSFT manual, section 1, and it's about to make your shell scripts look expensive πŸ’…


πŸŽ€ NAME πŸŽ€

ssft.sh β€” a whole library of shell script frontend functions, no cap πŸ’–


🌸 SYNOPSIS 🌸

. ssft.sh

that's it. that's the whole vibe. you source it. πŸ¦‹


✨ DESCRIPTION ✨

okay bestie, listen up, because this part matters 🫢

ssft.sh is a library of shell functions, which means it is not a script you just run by itself β€” it has to be sourced from other scripts. iykyk.

if you do execute the script without arguments, it prints a usage message. it also supports the options --doc, --help and --version, so you're never just staring at it like 😭

  • wanna see every function it has? call the script with the --doc argument.
  • wanna know what one specific function does? call the script with --doc FUNCTION_NAME.

in the typical case β€” and this is the main character moment β€” the library must be sourced, and the SSFT_FRONTEND variable must be set to the frontend you want. your options are:

  • zenity
  • dialog
  • text

if SSFT_FRONTEND is not set, the default frontend is noninteractive. noted. periodt.

and if you want the theoretically best looking frontend, you use the function ssft_choose_frontend, like this:

. ssft.sh
[ -n "$SSFT_FRONTEND" ] || SSFT_FRONTEND="$( ssft_choose_frontend )"

like… look at her. she's choosing her own aesthetic. obsessed 😌✨


πŸ‘‘ AUTHOR πŸ‘‘

Written by Sergio Talens-Oliag <sto@debian.org>. πŸ’œ


okay that's the whole page, bestie πŸŽ€ this one's from the Debian folks, dated Jul 2016, and it lives in the SSFT manual as ssft.sh(1). go source it and make your scripts cute. mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from