Config::Model::Lister(3pm)

Config::Model::Lister3pm

List available models and applications

Usage

 perl -MConfig::Model::Lister -e'print Config::Model::Lister::models;'
 perl -MConfig::Model::Lister -e'print Config::Model::Lister::applications;'

Version

version 2.155

Overview

Small modules to list available models or applications whose config can be edited by cme. This module is designed to be used by bash completion.

All functions accept an optional boolean parameter. When true, only the local "lib" dir is scanned.

Functions

available_models

Returns an array of 3 hash refs:

•

category (system or user or application) => application list. E.g.

 { system => [ 'popcon' , 'fstab'] }
•

application name to model information. E.g.

 { 'multistrap' => { model => 'Multistrap', require_config_file => 1 }
•

application name to model name. E.g.

 { popcon => 'Popcon', 'multistrap' => 'Multistrap' }

models

Returns a string with the list of models.

applications

Returns a string with the list of editable applications.

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Dominique Dumont

From libconfig-model-perl 2.155-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.