From baf9360c8e66f4eb5c56fe6c37433e0a3fee2f54 Mon Sep 17 00:00:00 2001 From: Xieyt Date: Fri, 10 May 2024 04:52:32 +0530 Subject: [PATCH] update: misc status and function docs --- frappe_manager/commands.py | 1 + frappe_manager/site_manager/SiteManager.py | 3 ++- frappe_manager/sub_commands/ssl_command.py | 4 ++++ frappe_manager/sub_commands/update_command.py | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frappe_manager/commands.py b/frappe_manager/commands.py index 1943713f..7628ff3c 100644 --- a/frappe_manager/commands.py +++ b/frappe_manager/commands.py @@ -422,6 +422,7 @@ def logs( follow: Annotated[bool, typer.Option("--follow", "-f", help="Follow logs.")] = False, ): """Show frappe server logs or container logs for a given bench.""" + services_manager = ctx.obj["services"] verbose = ctx.obj['verbose'] bench = Bench.get_object(benchname, services_manager) diff --git a/frappe_manager/site_manager/SiteManager.py b/frappe_manager/site_manager/SiteManager.py index 8665f459..bbda7486 100644 --- a/frappe_manager/site_manager/SiteManager.py +++ b/frappe_manager/site_manager/SiteManager.py @@ -61,7 +61,8 @@ def list_benches(self): if not bench_list: richprint.exit( - "Seems like you haven't created any sites yet. To create a bench, use the command: 'fm create '." + "Seems like you haven't created any sites yet. To create a bench, use the command: 'fm create '.", + emoji_code=":white_check_mark:", ) list_table = Table(show_lines=True, show_header=True, highlight=True) diff --git a/frappe_manager/sub_commands/ssl_command.py b/frappe_manager/sub_commands/ssl_command.py index 267d23b2..114f5760 100644 --- a/frappe_manager/sub_commands/ssl_command.py +++ b/frappe_manager/sub_commands/ssl_command.py @@ -21,6 +21,8 @@ def delete( ), ] = None, ): + """Delete bench ssl certficate.""" + services_manager = ctx.obj["services"] bench = Bench.get_object(benchname, services_manager) richprint.change_head("Removing SSL certificate") @@ -40,6 +42,8 @@ def renew( ] = None, all: Annotated[bool, typer.Option(help="Renew ssl cert for all benches.")] = False, ): + """Renew bench ssl certficate.""" + services_manager = ctx.obj["services"] benches = BenchesManager(CLI_BENCHES_DIRECTORY, services=services_manager) diff --git a/frappe_manager/sub_commands/update_command.py b/frappe_manager/sub_commands/update_command.py index e2d477c0..6aea10ef 100644 --- a/frappe_manager/sub_commands/update_command.py +++ b/frappe_manager/sub_commands/update_command.py @@ -37,4 +37,6 @@ def update_callback( def images( ctx: typer.Context, ): + """Pull latest FM stack docker images.""" + pull_docker_images()