Improve ynh_add_config doc (#2154)

* Improve ynh_add_config template parameter usage description

* Update packaging_apps_helpers.md

* Update pages/06.contribute/10.packaging_apps/11.helpers/packaging_apps_helpers.md

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
This commit is contained in:
Nicolas Frandeboeuf 2022-11-30 18:03:54 +01:00 committed by GitHub
parent 030cbb83d3
commit 911d0b5aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2301,13 +2301,13 @@ Requires YunoHost version 2.6.4 or higher.
**Usage**: `ynh_add_config --template="template" --destination="destination"`
**Arguments**:
- `-t`, `--template=`: Template config file to use
- `-t`, `--template=`: Template config file to use. The file will first be looked for in the `conf` directory of the package and if missing at the exact path given.
- `-d`, `--destination=`: Destination of the config file
**Examples**:
- ` ynh_add_config --template=".env" --destination="$final_path/.env" use the template file "../conf/.env"`
- ` ynh_add_config --template=".env" --destination="$final_path/.env"` uses the template file `../conf/.env`