NAME
config-model-edit - Edit Config::Model models
SYNOPSIS
config-model-edit [options] -model Xorg
DESCRIPTION
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.
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. - -if
-
Specify the user interface type.
shell
: provides a shell like interface. See Config::Model::TermUI for details.curses
: provides a curses user interface (If Config::Model::CursesUI is installed).
- -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
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