Skip to content

Commit aab80f9

Browse files
authored
Merge pull request #1758 from OniriCorpe/OniriCorpe-patch-1
add --after= in the usage section of ynh_read_var_in_file and ynh_write_var_in_file
2 parents 6c3290d + b2c3c70 commit aab80f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helpers/utils

+2
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ ynh_replace_vars() {
611611
# usage: ynh_read_var_in_file --file=PATH --key=KEY
612612
# | arg: -f, --file= - the path to the file
613613
# | arg: -k, --key= - the key to get
614+
# | arg: -a, --after= - the line just before the key (in case of multiple lines with the name of the key in the file)
614615
#
615616
# This helpers match several var affectation use case in several languages
616617
# We don't use jq or equivalent to keep comments and blank space in files
@@ -714,6 +715,7 @@ ynh_read_var_in_file() {
714715
# | arg: -f, --file= - the path to the file
715716
# | arg: -k, --key= - the key to set
716717
# | arg: -v, --value= - the value to set
718+
# | arg: -a, --after= - the line just before the key (in case of multiple lines with the name of the key in the file)
717719
#
718720
# Requires YunoHost version 4.3 or higher.
719721
ynh_write_var_in_file() {

0 commit comments

Comments
 (0)