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

12 statements  

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

1"""Self subcommands for operations related to fm itself.""" 

2 

3import typer 

4from typer_examples import install 

5 

6from frappe_manager.commands.self.compose import compose 

7from frappe_manager.commands.self.stop import stop 

8from frappe_manager.commands.self.update import update 

9from frappe_manager.commands.self.update_images import update_images 

10 

11self_app = typer.Typer( 

12 no_args_is_help=True, 

13 rich_markup_mode="rich", 

14 context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, 

15) 

16 

17# Activate typer-examples for this Typer app 

18install(self_app) 

19 

20self_app.command()(update) 

21self_app.command(name="update-images")(update_images) 

22self_app.command(context_settings={"allow_extra_args": True, "ignore_unknown_options": True})(compose) 

23self_app.command()(stop)