-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #5058: add method to ensure lhs=rhs in files #63
Fixes #5058: add method to ensure lhs=rhs in files #63
Conversation
create => "false", | ||
edit_line => maintain_key_values("${array}", "${separator}"), | ||
edit_defaults => no_backup, | ||
classes => classes_generic("${class_prefix}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This identation is broken
I think the naming could be improved here. array" is really a terrible variable name, can we go with "keys" instead? Can we rename the whole bundle "file_ensure_keys_values"? |
PR has been updated |
# | ||
# @parameter file File name to edit | ||
# @parameter keys Array with where keys are LHS and values are RHS | ||
# @parameter separator Separator between LHS and RHS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the description and parameter docs to use "key" instead of LHS and "value" instead of RHS.
Also the doc for the "keys" parameters doesn't make sense ("with where"...)
PR has been updated |
# | ||
##################################################################################### | ||
|
||
# @name File ensure lines with key->values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, you didn't update the name after changing the bundle name!
Please use "File ensure keys->values present"
ac60e63
to
54e1c30
Compare
PR has been updated |
OK, merging |
…_edition_lhs_rhs Fixes #5058: add method to ensure lhs=rhs in files
No description provided.