Skip to content

Commit

Permalink
Added inline docs showing valid values for method (field_operation) i…
Browse files Browse the repository at this point in the history
…n body edit_field quoted_var

This is just a small change so that a user doesn't have to hunt down the valid
options to know what's available.

Ticket: CFE-4426
Changelog: Title
  • Loading branch information
nickanderson committed Jul 24, 2024
1 parent 3479c1b commit 79ca527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/files.cf
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,8 @@ body edit_field fstab_options(newval, method)
body edit_field quoted_var(newval,method)
# @brief Edit the quoted value of the matching line
# @param newval The new value
# @param method The method by which to edit the field
# @param method The method by which to edit the field (append|prepend|alphanum|set|delete)
# Ref https://docs.cfengine.com/latest/reference-promise-types-files-edit_line-field_edits.html#field_operation
{
field_separator => "\"";
select_field => "2";
Expand Down

0 comments on commit 79ca527

Please sign in to comment.