.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "CONFIG-MODEL-EDIT 1p" .TH CONFIG-MODEL-EDIT 1p "2016-09-18" "perl v5.22.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" config\-model\-edit \- Deprecated use cme meta edit .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& config\-model\-edit [options] \-model Sshd [ class:Sshd element:Foo ... ] \& \& # plugin mode \& config\-model\-edit [options] \-model Debian::Dpkg \-plugin\-file dpkg\-snippet.pl .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" config-model-edit will provides a Perl/Tk graphical interface to edit configuration models that will be used by Config::Model. .PP Config::Model is a general purpose configuration framework based on configuration models (See Config::Model for details). .PP 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. .PP The structure and rules documented in Config::Model are also expressed in a model in the files provided with Config::Model::Itself. .PP 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. .PP The model editor program is config-model-edit. .SH "USAGE" .IX Header "USAGE" \&\f(CW\*(C`config\-model\-edit\*(C'\fR will read and write model file from \&\f(CW\*(C`./lib/Config/Model/models\*(C'\fR. .PP When you specify a \f(CW\*(C`\-model\*(C'\fR options, only configuration models matching this options will be loaded. I.e. .PP .Vb 1 \& config\-model\-edit \-model Xorg .Ve .PP will load models \f(CW\*(C`Xorg\*(C'\fR (file \f(CW\*(C`Xorg.pl\*(C'\fR) and all other \f(CW\*(C`Xorg::*\*(C'\fR like \&\f(CW\*(C`Xorg::Screen\*(C'\fR (file \f(CW\*(C`Xorg/Screen.pl\*(C'\fR). .SH "Options" .IX Header "Options" .IP "\-model" 4 .IX Item "-model" Mandatory option that specifies the configuration model to be edited. .IP "\-plugin\-file foo.pl" 4 .IX Item "-plugin-file foo.pl" this option can be used to create model plugins. A model plugin is an addendum to an existing model. The resulting file will be saved in a \f(CW\*(C`.d\*(C'\fR directory besides the original file to be taken into account. .Sp For instance: .Sp .Vb 5 \& $ config\-model\-edit \-model Debian::Dpkg \-plugin\-file my\-plugin.pl \& # perform additions to Debian::Dpkg and Debian::Dpkg::Control::Source and save \& $ find lib \-name my\-plugin.pl \& lib/Config/Model/models/Debian/Dpkg.d/my\-plugin.pl \& lib/Config/Model/models/Debian/Dpkg/Control/Source.d/my\-plugin.pl .Ve .IP "system" 4 .IX Item "system" Read model from system files, i.e. from installed files, not from \&\f(CW\*(C`./lib\*(C'\fR directory. .IP "\-trace" 4 .IX Item "-trace" Provides a full stack trace when exiting on error. .IP "\-force\-load" 4 .IX Item "-force-load" Load file even if error are found in data. Bad data are loaded, but should be cleaned up before saving the model. See menu \f(CW\*(C`File \-> check\*(C'\fR in the \s-1GUI.\s0 .IP "\-dot\-diagram" 4 .IX Item "-dot-diagram" Returns a dot file that represent the structure of the configuration model. \f(CW\*(C`include\*(C'\fR are represented by solid lines. Class usage (i.e. \f(CW\*(C`config_class_name\*(C'\fR parameter) is represented by dashed lines. The name of the element is attached to the dashed line. .IP "\-dump [ file ]" 4 .IX Item "-dump [ file ]" Dump configuration content on \s-1STDOUT\s0 or in the specified with Config::Model syntax. .Sp By default, dump only custom values, i.e. different from application built-in values or model default values. See \-dumptype option for other types of dump .IP "\-dumptype [ full | preset | custom ]" 4 .IX Item "-dumptype [ full | preset | custom ]" Choose to dump every values (full), only preset values or only customized values (default) .IP "\-load | \-" 4 .IX Item "-load | -" Load model from cds file (using Config::Model serialisation format, typically done with \-dump option). This option can be used with \&\f(CW\*(C`\-save\*(C'\fR to directly save a model loaded from the cds file or from \&\s-1STDIN.\s0 .IP "\-load\-yaml | \-" 4 .IX Item "-load-yaml | -" Load configuration data in model from \s-1YAML\s0 file. This option can be used with \f(CW\*(C`\-save\*(C'\fR to directly save a model loaded from the \s-1YAML\s0 file or from \s-1STDIN.\s0 .IP "\-dump_yaml" 4 .IX Item "-dump_yaml" Dump a model in \s-1YAML\s0 format .IP "\-save" 4 .IX Item "-save" Force a save of the model even if no edition was done. This option is useful to migrate a model when Config::Model model feature changes. .IP "\-dir" 4 .IX Item "-dir" Directory where to read and write model .IP "\-open\-item 'path'" 4 .IX Item "-open-item 'path'" In graphical mode, force the \s-1UI\s0 to open the node specified. E.g. .Sp .Vb 1 \& \-open_item \*(Aqclass:Fstab::FsLine element:fs_mntopts rules\*(Aq .Ve .SH "LOGGING" .IX Header "LOGGING" All Config::Model logging was moved from klunky debug and verbose prints to Log::Log4perl. Logging can be configured in the following files: .IP "\(bu" 4 .Sp .Vb 1 \& ~/.log4config\-model .Ve .IP "\(bu" 4 .Sp .Vb 1 \& /etc/log4config\-model.conf .Ve .PP Without these files, the following Log4perl config is used: .PP .Vb 5 \& log4perl.logger=WARN, Screen \& log4perl.appender.Screen = Log::Log4perl::Appender::Screen \& log4perl.appender.Screen.stderr = 0 \& log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout \& log4perl.appender.Screen.layout.ConversionPattern = %d %m %n .Ve .PP Log4Perl categories are shown in \*(L"\s-1LOGGING\*(R"\s0 in config-edit .SH "AUTHOR" .IX Header "AUTHOR" Dominique Dumont, ddumont at cpan dot org .SH "SEE ALSO" .IX Header "SEE ALSO" Config::Model, Config::Model::Node, Config::Model::Instance, Config::Model::HashId, Config::Model::ListId, Config::Model::WarpedNode, Config::Model::Value