forked from extern/podman-compose
reformat
This commit is contained in:
parent
0cf98c7893
commit
909d05e718
@ -2344,6 +2344,7 @@ def compose_port(compose, args):
|
||||
print(published)
|
||||
return
|
||||
|
||||
|
||||
@cmd_run(podman_compose, "pause", "Pause all running containers")
|
||||
def compose_pause(compose, args):
|
||||
container_names_by_service = compose.container_names_by_service
|
||||
@ -2354,6 +2355,7 @@ def compose_pause(compose, args):
|
||||
targets.extend(container_names_by_service[service])
|
||||
compose.podman.run([], "pause", targets)
|
||||
|
||||
|
||||
@cmd_run(podman_compose, "unpause", "Unpause all running containers")
|
||||
def compose_unpause(compose, args):
|
||||
container_names_by_service = compose.container_names_by_service
|
||||
@ -2772,12 +2774,14 @@ def compose_port_parse(parser):
|
||||
help="private port",
|
||||
)
|
||||
|
||||
|
||||
@cmd_parse(podman_compose, ["pause", "unpause"])
|
||||
def compose_pause_unpause_parse(parser):
|
||||
parser.add_argument(
|
||||
"services", metavar="services", nargs="*", default=None, help="service names"
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
podman_compose.run()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user