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 detaisl).
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, installed models (i.e. located in /usr/share/perl/...
) will be loaded in the editor. Modified models will be saved (by default) in the current directory.
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).
- -model_dir
-
Specify an alternate directory to find model files. Mostly useful for tests.
- -write_conf_dir
-
Specify where to write the configuration files. (Actual default directory and file names depends on the model (See
-model
option). - -read_conf_dir
-
Specify where to read the configuration files. (Actual default directory and file names depends on the model (See
-model
option). - -verbose
-
Be (very) verbose
- -debug
-
Provide debug infos.
- -trace
-
Provides a full stack trace when exiting on error.
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