1App::Cme::Command::modiUfsye(r3)Contributed Perl DocumenAtpapt:i:oCnme::Command::modify(3)
2
3
4

NAME

6       App::Cme::Command::modify - Modify the configuration of an application
7

VERSION

9       version 1.032
10

SYNOPSIS

12         # modify configuration with command line
13         cme modify dpkg source 'format="(3.0) quilt"'
14

DESCRIPTION

16       Modify a configuration file with the values passed on the command line.
17       These command must follow the syntax defined in Config::Model::Loader
18       (which is similar to the output of cme dump command)
19
20       Example:
21
22          cme modify dpkg 'source format="(3.0) quilt"'
23          cme modify multistrap my_mstrap.conf 'sections:base source="http://ftp.fr.debian.org"'
24
25       Some application like dpkg-copyright allows you to override the
26       configuration file name. You must then use "-file" option:
27
28          cme modify dpkg-copyright -file ubuntu/copyright 'Comment="Silly example"'
29
30       Finding the right instructions to perform a modification may be
31       difficult when starting from scratch.
32
33       To get started, you can run "cme dump --format cml" command to get the
34       content of your configuration in the syntax accepted by "cme modify":
35
36        $ cme dump ssh -format cml
37        Host:"*" -
38        Host:"alioth.debian.org"
39          User=dod -
40        Host:"*.debian.org"
41          IdentityFile:="~/.ssh/id_debian"
42          User=dod -
43
44       Then you can use this output to create instruction for a modification:
45
46        $  cme modify ssh 'Host:"*" User=dod'
47        Changes applied to ssh configuration:
48        - Host:"*" User has new value: 'dod'
49

Common options

51       See "Global Options" in cme.
52

options

54       -save
55           Force a save even if no change was done. Useful to reformat the
56           configuration file.
57
58       -verbose
59           Show effect of the modify instructions.
60

SEE ALSO

62       cme
63

AUTHOR

65       Dominique Dumont
66
68       This software is Copyright (c) 2014-2020 by Dominique Dumont.
69
70       This is free software, licensed under:
71
72         The GNU Lesser General Public License, Version 2.1, February 1999
73
74
75
76perl v5.32.0                      2020-07-28      App::Cme::Command::modify(3)
Impressum