Add yunohost domain config list command

This commit is contained in:
Paco 2021-03-25 21:08:08 +01:00
parent 4876860b47
commit 503a5ed6d2
2 changed files with 10 additions and 5 deletions

View file

@ -560,11 +560,6 @@ domain:
list:
action_help: Get settings for all domains
api: GET /domains/list
arguments:
domain:
help: Target domain
extra:
pattern: *pattern_domain
# domain_config_show
show:

View file

@ -719,6 +719,16 @@ def _load_domain_settings():
return new_domains
def domain_config_list():
"""
Show settings of all domains
Keyword arguments:
domain -- The domain name
"""
return _load_domain_settings()
def domain_config_show(domain):
"""
Show settings of a domain