Coverage for frappe_manager / commands / ssl / __init__.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-07-02 18:13 +0530

1"""SSL management commands module.""" 

2 

3import typer 

4from typer_examples import install 

5 

6# Create main SSL app 

7ssl_app = typer.Typer(no_args_is_help=True, rich_markup_mode="rich") 

8 

9# Activate typer-examples for this Typer app 

10install(ssl_app) 

11 

12# Import commands to register them 

13from .acme_sh import acmesh_passthrough 

14from .add import add_certificate 

15from .dns_config import dns_config_command 

16from .list import list_certificates 

17from .remove import remove_certificate 

18from .renew import renew 

19 

20# Register top-level commands 

21ssl_app.command(name="renew")(renew) 

22ssl_app.command(name="list")(list_certificates) 

23ssl_app.command(name="add")(add_certificate) 

24ssl_app.command(name="remove")(remove_certificate) 

25ssl_app.command(name="acme-sh", context_settings={"allow_extra_args": True, "ignore_unknown_options": True})( 

26 acmesh_passthrough, 

27) 

28 

29# Register subcommand Typer app 

30ssl_app.add_typer(dns_config_command, name="dns-config", help="Configure DNS provider credentials") 

31 

32__all__ = ["ssl_app"]