Rename ynh_load_app_environment into ynh_spawn_app_shell

Co-authored-by: Florent <florent.git@zeteo.me>
This commit is contained in:
tituspijean 2023-05-24 21:11:32 +00:00
parent 21c7c41812
commit cc167cd92c
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 5 additions and 5 deletions

View file

@ -118,11 +118,11 @@ ynh_remove_apps() {
# | arg: -a, --app= - the app ID
#
# examples:
# ynh_load_app_environment --app="APP" <<< 'echo "$USER"'
# ynh_load_app_environment --app="APP" < /tmp/some_script.bash
# ynh_spawn_app_shell --app="APP" <<< 'echo "$USER"'
# ynh_spawn_app_shell --app="APP" < /tmp/some_script.bash
#
# Requires YunoHost version 11.0.* or higher.
ynh_load_app_environment() {
ynh_spawn_app_shell() {
# Declare an array to define the options of this helper.
local legacy_args=a
local -A args_array=([a]=app=)

View file

@ -1653,7 +1653,7 @@ def app_shell(app):
app -- App ID
"""
subprocess.run(['/bin/bash', '-c', 'source /usr/share/yunohost/helpers && ynh_load_app_environment '+app])
subprocess.run(['/bin/bash', '-c', 'source /usr/share/yunohost/helpers && ynh_spawn_app_shell '+app])
def app_register_url(app, domain, path):
"""