PRIMA-CFGMAINT(1)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

Hey bestie πŸ’– welcome to the PRIMA-CFGMAINT(1) page β€” yes, it's the User Contributed Perl Documentation glow-up for cfgmaint, and we're gonna make it make sense. Periodt. ✨

🌸 NAME 🌸

cfgmaint β€” configuration tool for Visual Builder πŸ› οΈπŸ’…

🌈 SYNTAX 🌈

cfgmaint [ -rbxop ] command object [ parameters ]

πŸ¦‹ DESCRIPTION πŸ¦‹

So cfgmaint maintains the configuration of the widget palette in the Visual Builder. The widget palette can be stored in the system-wide and local user config files. And cfgmaint lets you add, rename, move, and delete the classes and pages in the Visual Builder widget palette. It's giving config-maintenance main character energy, fr fr. πŸ‘‘

πŸŽ€ USAGE πŸŽ€

cfgmaint is invoked with the command and object arguments, where the command defines the action to be taken and object is the object to be handled. Think of it like: command says what, object says who. πŸ’«

✨ Options ✨

  • -r β€” write configuration to the system-wide config file.
  • -b β€” read configuration from both the system-wide and user config files.
  • -x β€” do not write backups.
  • -o β€” read-only mode.
  • -p β€” execute use Prima; code before start. This option might be necessary when adding a module that relies on the toolkit but does not invoke the code itself. iykyk 🧚

πŸ“ Objects πŸ“

  • m β€” selects a module. Valid for the add, list, and remove commands.
  • p β€” selects a page. Valid for all commands.
  • w β€” selects a widget. Valid for the list, remove, rename, and move commands.

πŸ’… Commands πŸ’…

  • a β€” adds a new object to the configuration. Can be either a page or a module.
  • d β€” removes an object.
  • l β€” prints the object name. In case the object is a widget, prints all registered widgets. If the string is specified as an additional parameter, it is treated as a page name, and only widgets from the page are printed.
  • r β€” renames the object to a new name, which is passed as an additional parameter. Can be either a widget or a page.
  • m β€” if the object is a widget, relocates one or more widgets to a new page. If the object is a page, moves the page before the page specified as an additional parameter, or to the end if no additional page is specified.

πŸ”₯ EXAMPLE πŸ”₯

Add a new module to the system-wide configuration:

cfgmaint -r a m CPAN/Prima/VB/New/MyCtrls.pm

List widgets that are present in both config files:

cfgmaint -b l w

Rename a page:

cfgmaint r p General Basic

🌟 FILES 🌟

Prima/VB/Config.pm, ~/.prima/vbconfig

πŸ‘‘ AUTHOR πŸ‘‘

Dmitry Karasik, <dmitry@karasik.eu.org>.

πŸ’œ SEE ALSO πŸ’œ

VB, Prima::VB::CfgMaint


That's the whole page, bestie 🫢 β€” brought to you by perl v5.42.0, dated 2024-08-20. Now go slay those configs πŸ’…βœ¨

πŸ“¦ where this page comes from