config-model-edit.1p

Langue: en

Autres versions - même langue

Version: 2009-04-22 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

config-model-edit - Graphical model editor for Config::Model

SYNOPSIS

   config-model-edit [options] -model Xorg
 
 

DESCRIPTION

config-model-edit will provides a Perl/Tk graphical interface to edit configuration models that will be used by Config::Model.

Config::Model is a general purpose configuration framework based on configuration models (See Config::Model for details).

This configuration model is also expressed as structured data. This structure data is structured and follow a set of rules which are described for humans in Config::Model.

The structure and rules documented in Config::Model are also expressed in a model in the files provided with Config::Model::Itself.

Hence the possibity to verify, modify configuration data provided by Config::Model can also be applied on configuration models using the same user interface as config-edit.

The model editor program is config-model-edit.

USAGE

By default, "config-model-edit" will try to load a model file from "lib/Config/Model/models". If no model is found, "config-model-edit" will try to load installed models (i.e. located in "/usr/share/perl/...").

Modified models will be saved (by default) in "$PWD/lib/Config/Model/models/".

You can override this behavior with option "-dir".

When you specify a "-model" options, only configuration models matching this options will be loaded. I.e.

   config-model-edit -model Xorg
 
 

will load models "Xorg" (file "Xorg.pl") and all other "Xorg::*" like "Xorg::Screen" (file "Xorg/Screen.pl").

Options

-model
Mandatory option that specifies the configuration data to be edited. By default, installed models will be edited. If you are running E.g. this command:
   config-edit -model Fstab
 
 

will look for "/etc/config-model.d/Fstab.pl" model file. See Config::Model for more details.

-verbose
Be (very) verbose
-debug
Provide debug infos.
-trace
Provides a full stack trace when exiting on error.
-force-load
Load file even if error are found in data. Bad data are discarded
-dot_diagram
Returns a dot file that represent the stucture of the configuration model. "include" are represented by solid lines. Class usage (i.e. "config_class_name" parameter) is represented by dashed lines. The name of the element is attached to the dashed line.

AUTHOR

Dominique Dumont, ddumont at cpan dot org

SEE ALSO

Config::Model::Model, Config::Model::Instance, Config::Model::HashId, Config::Model::ListId, Config::Model::WarpedNode, Config::Model::Value