Reply::Config(3pm)

πŸ“¦
version 0.42 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Reply::Config πŸ’–

okay so bestie, welcome to Reply::Config β€” it's a User Contributed Perl Documentation page and yes, it lives in section 3pm like all the cool Perl modules do. ✨

🌸 NAME 🌸

Reply::Config β€” it's giving config loading for Reply. that's literally the whole job and she does it flawlessly πŸ’…

πŸŽ€ VERSION πŸŽ€

version 0.42 β€” iconic number, no notes 🫢

✨ SYNOPSIS ✨

like, here's the vibe in code form:

use Reply;
use Reply::Config;

Reply->new(config => Reply::Config->new(file => 'something_else'))->run;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this class is the main character that handles the config file loading, but like, in a way that's reusable β€” it abstracts it all out so that other applications can spin up Reply shells using basically the same logic. sharing is caring fr fr 🫢

Reply configuration gets specified in an INI format β€” if you want the deets, go look at Reply itself, she has the full story. iykyk πŸ‘‘


πŸ’… METHODS πŸ’…

πŸ’œ new(%opts)

Creates a brand new config object. the valid options are, and i'm being so serious rn:

  • file β€” the config file you wanna use. and here's the little twist bestie: if you give it as a relative path, it's gonna be relative to the user's home directory. if you give it as an absolute path, it just gets used as-is. no cap. 🏠

πŸ’œ file

Returns the absolute path to the config file that's gonna be used. absolute, not relative, she's very precise about that ⭐

πŸ’œ data

Returns the loaded configuration data. the actual goods. the payload. the whole reason we're here πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Jesse Luehrs <doy@tozt.net> β€” thank you for your service king πŸ«‘πŸ’–

This software is Copyright (c) 2016 by Jesse Luehrs.

This is free software, licensed under:

The MIT (X11) License

aaaand that's the whole page bestie!! 🌈 this was generated by perl v5.34.0 on 2022-06-17, so like, shoutout to that exact version and that exact date for making this little doc possible πŸ’€βœ¨ slay, go configure something, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from