mirror of
https://github.com/containers/podman-compose.git
synced 2025-05-31 15:35:42 +02:00
reformat
This commit is contained in:
parent
ccdb98c0e4
commit
ae6be272b5
@ -2367,11 +2367,15 @@ def compose_unpause(compose, args):
|
|||||||
compose.podman.run([], "unpause", targets)
|
compose.podman.run([], "unpause", targets)
|
||||||
|
|
||||||
|
|
||||||
@cmd_run(podman_compose, "kill", "Kill one or more running containers with a specific signal")
|
@cmd_run(
|
||||||
|
podman_compose, "kill", "Kill one or more running containers with a specific signal"
|
||||||
|
)
|
||||||
def compose_kill(compose, args):
|
def compose_kill(compose, args):
|
||||||
# to ensure that the user did not execute the command by mistake
|
# to ensure that the user did not execute the command by mistake
|
||||||
if not args.services and not args.all:
|
if not args.services and not args.all:
|
||||||
print("Error: you must provide at least one service name or use (--all) to kill all services")
|
print(
|
||||||
|
"Error: you must provide at least one service name or use (--all) to kill all services"
|
||||||
|
)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
container_names_by_service = compose.container_names_by_service
|
container_names_by_service = compose.container_names_by_service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user