Config...:Approx(3pm)

πŸ“¦
version 1.012 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… Config::Model::Approx(3pm) β€” User Contributed Perl Documentation ✨

okay bestie, quick vibe check: this is a manual page from the <rainbow>perl</rainbow> world, section 3pm, and it's literally the glow-up guide for editing your Approx config. let's get into it 🫢


✨ NAME ✨

Config::Model::Approx β€” Approx configuration file editor πŸ’–


🌸 VERSION 🌸

version 1.012 ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole mood board, no cap:

# Check approx content
cme check approx

# full blown editor
sudo cme edit approx

# command line use
sudo cme modify approx 'distributions:multimedia=http://www.debian-multimedia.org'

# Perl API
use Config::Model ;
my $model = Config::Model -> new ( ) ;

my $inst = $model->instance (root_class_name   => 'Approx');
my $root = $inst -> config_root ;

$root->load("distributions:multimedia=http://www.debian-multimedia.org") ;

$inst->write_back() ;

πŸ¦‹ DESCRIPTION πŸ¦‹

so this module is literally a configuration editor for Approx. if you run cme as root, it will update /etc/approx/approx.conf. slay. πŸ‘‘

once this module is installed onto your system, you can just run this:

# cme edit approx

and honestly? this module and Config::Model can also be used from within Perl programs to modify the content of /etc/approx/approx.conf safely. like, carefully. no chaos. 🌈

the Perl API is documented in Config::Model and mostly in Config::Model::Node. iykyk πŸ’…


πŸ’€ BUGS πŸ’€

not me having to tell you this but… the configuration file is reformatted when written. so yeah. it's giving glow-up whether you asked for it or not. 😭


πŸ”₯ SEE ALSO πŸ”₯


🌈 SEE ALSO 🌈

cme, Config::Model, 🌸


πŸ‘‘ AUTHOR πŸ‘‘

Dominique Dumont β€” the main character fr fr πŸ’œ


This software is Copyright (c) 2015-2021 by Dominique Dumont.

This is free software, licensed under:

The GNU Lesser General Public License, Version 2.1, February 1999

periodt. πŸ’…


and that's the whole page bestie, you ate πŸ“

okay and for the cute sign-off: this whole thing came off perl v5.36.0, dated 2022-10-14, and the manual page is Config...:Approx(3pm). mwah πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from