forked from Github-Mirrors/canaille
doc: CLI documentation improvements
This commit is contained in:
parent
b16630063b
commit
4791d27569
2 changed files with 11 additions and 3 deletions
|
@ -27,7 +27,11 @@ def with_backendcontext(func):
|
|||
@with_appcontext
|
||||
@with_backendcontext
|
||||
def check():
|
||||
"""Check the configuration file."""
|
||||
"""Test the configuration file.
|
||||
|
||||
Attempt to reach the database and the SMTP server with the provided
|
||||
credentials.
|
||||
"""
|
||||
from canaille.app.configuration import ConfigurationException
|
||||
from canaille.app.configuration import validate
|
||||
|
||||
|
@ -41,7 +45,11 @@ def check():
|
|||
@click.command()
|
||||
@with_appcontext
|
||||
def install():
|
||||
"""Installs canaille elements from the configuration."""
|
||||
"""Installs canaille elements from the configuration.
|
||||
|
||||
For instance, depending on the configuration, this can generate OIDC
|
||||
keys or install LDAP schemas.
|
||||
"""
|
||||
from canaille.app.configuration import ConfigurationException
|
||||
from canaille.app.installation import install
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ from canaille import create_app
|
|||
add_default_commands=False,
|
||||
)
|
||||
def cli():
|
||||
"""Canaille management."""
|
||||
"""Canaille management utilities."""
|
||||
|
||||
|
||||
canaille.app.commands.register(cli)
|
||||
|
|
Loading…
Reference in a new issue