SHTK_CONFIG_GET_DEFAULT(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the SHTK_CONFIG_GET_DEFAULT(3) page in the Library Functions Manual ✨

shtk_config_get_default β€” gets the value of a possibly-unset configuration variable πŸ’…

πŸ“š LIBRARY πŸ“š

You get this by importing the config module, no cap:

shtk_import config

✨ SYNOPSIS ✨

shtk_config_get_default var_name default_value

🫢 DESCRIPTION 🫢

The shtk_config_get_default function prints to stdout the value of the configuration variable var_name if it has been previously set β€” either by a call to shtk_config_set(3) within the script, or by the user in the configuration file. πŸ’–

Otherwise? If the variable has not been set, the value it prints is default_value. That's the whole vibe: set config wins, unset config gets your fallback. πŸŽ€

πŸ‘€ SEE ALSO πŸ‘€

  • shtk(3) β€” go read this one too, bestie πŸ‘‘
  • shtk_config(3) β€” and this one, fr fr πŸ¦‹

🌸 HISTORY 🌸

shtk_config_get_default first appeared in shtk 1.0. ⭐


Signed, sealed, and slayed: this is the SHTK_CONFIG_GET_DEFAULT(3) page from Debian, dated November 6, 2014 πŸ’œ

πŸ“¦ where this page comes from