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

12 statements  

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

1"""Services subcommands for managing global services.""" 

2 

3import typer 

4from typer_examples import install 

5 

6from frappe_manager.commands.services.restart import restart_services 

7from frappe_manager.commands.services.shell import shell_services 

8from frappe_manager.commands.services.start import start_services 

9from frappe_manager.commands.services.stop import stop_services 

10 

11services_app = typer.Typer(no_args_is_help=True, rich_markup_mode="rich") 

12 

13# Activate typer-examples for this Typer app 

14install(services_app) 

15 

16services_app.command(name="start", no_args_is_help=True)(start_services) 

17services_app.command(name="stop", no_args_is_help=True)(stop_services) 

18services_app.command(name="restart", no_args_is_help=True)(restart_services) 

19services_app.command(name="shell", no_args_is_help=True)(shell_services)