logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Dominique Dumont

Common Options

       See "Global Options" in cme.

Description

       Modify a configuration file with the values passed on the command line.  These command must follow the
       syntax defined in Config::Model::Loader (which is similar to the output of cme dump command)

       Example:

          cme modify dpkg 'source format="(3.0) quilt"'
          cme modify multistrap my_mstrap.conf 'sections:base source="http://ftp.fr.debian.org"'

       Some application like dpkg-copyright allows you to override the configuration file name. You must then
       use "-file" option:

          cme modify dpkg-copyright -file ubuntu/copyright 'Comment="Silly example"'

       Finding the right instructions to perform a modification may be difficult when starting from scratch.

       To get started, you can run "cme dump --format cml" command to get the content of your configuration in
       the syntax accepted by "cme modify":

        $ cme dump ssh -format cml
        Host:"*" -
        Host:"alioth.debian.org"
          User=dod -
        Host:"*.debian.org"
          IdentityFile:="~/.ssh/id_debian"
          User=dod -

       Then you can use this output to create instruction for a modification:

        $  cme modify ssh 'Host:"*" User=dod'
        Changes applied to ssh configuration:
        - Host:"*" User has new value: 'dod'

Name

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

Options

       -savek
           Force a save even if no change was done. Useful to reformat the configuration file.

       -verbose
           Show effect of the modify instructions.

See Also

       cme

Synopsis

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

Version

       version 1.041

See Also