Hello,

Is it possible to define multiple comment types for actions such as
UnCommentLinesContaining UnCommentLinesMatching? We are using cfengine to
verify/modify files that have two varying comment styles '#' and '# '.
The objective, Lines Containing 'quoted-string' or 'quoted-regex' that are
commented by multiple styles to handled with the same action
UnCommentLines action.

Example (with maigical multiple comment styles defined):

{ somefile
        UnCommentLinesContaining "mystring"
}

would result in lines containing "mystring" will be UnCommented
for '# mystring' and '#mystring'


Currently we can accomplish this with repetition:

{ somefile
        SetCommentStart '#'
        UnCommentLinesContaining 'mystring'
        SetCommentStart '# '
        UnCommentLinesContaining 'mystring'
}

Obviously this can only apply to UnComment actions, but would be handy.

Thanks,
-dolan

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to