Improved code readability

This commit is contained in:
jpk 2023-01-13 15:43:30 +01:00
parent cbb8b7bbfd
commit 67d0f91a5b
3 changed files with 9 additions and 15 deletions

View File

@ -1 +1 @@
__version__ = "0.4.0" __version__ = "0.4.1"

View File

@ -83,19 +83,13 @@ def update(ctx, service, remove):
Path(ctx.obj["CONFIG"].root_directory) / service Path(ctx.obj["CONFIG"].root_directory) / service
) )
print(Rule(f"Updating {service}")) print(Rule(f"Updating {service}"))
services.docker_compose_command( command_chain = [
[ ["down" if remove else "stop"],
["stop", "down"][remove], ["pull"],
], ["up", "-d"],
compose_file, ]
) for command in command_chain:
services.docker_compose_command( services.docker_compose_command(command, compose_file)
[
"pull",
],
compose_file,
)
services.docker_compose_command(["up", "-d"], compose_file)
main.add_command(list) main.add_command(list)

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "doxy" name = "doxy"
version = "0.4.0" version = "0.4.1"
description = "" description = ""
authors = ["jpk <jpk@goatpr0n.de>"] authors = ["jpk <jpk@goatpr0n.de>"]
readme = "README.md" readme = "README.md"