Skip to content

Commit

Permalink
update: misc status and function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xieyt committed May 9, 2024
1 parent e00fc6b commit baf9360
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions frappe_manager/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion frappe_manager/site_manager/SiteManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <benchname>'."
"Seems like you haven't created any sites yet. To create a bench, use the command: 'fm create <benchname>'.",
emoji_code=":white_check_mark:",
)

list_table = Table(show_lines=True, show_header=True, highlight=True)
Expand Down
4 changes: 4 additions & 0 deletions frappe_manager/sub_commands/ssl_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions frappe_manager/sub_commands/update_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ def update_callback(
def images(
ctx: typer.Context,
):
"""Pull latest FM stack docker images."""

pull_docker_images()

0 comments on commit baf9360

Please sign in to comment.