mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-18 17:38:34 +02:00
Add quiet flag to podman-compose config
This skips printing and is useful for validating config files. Signed-off-by: Ian Fijolek <ian@iamthefij.com>
This commit is contained in:
@@ -3136,9 +3136,11 @@ async def compose_logs(compose, args):
|
||||
async def compose_config(compose, args):
|
||||
if args.services:
|
||||
for service in compose.services:
|
||||
print(service)
|
||||
if not args.quiet:
|
||||
print(service)
|
||||
return
|
||||
print(compose.merged_yaml)
|
||||
if not args.quiet:
|
||||
print(compose.merged_yaml)
|
||||
|
||||
|
||||
@cmd_run(podman_compose, "port", "Prints the public port for a port binding.")
|
||||
@@ -3672,6 +3674,12 @@ def compose_config_parse(parser):
|
||||
parser.add_argument(
|
||||
"--services", help="Print the service names, one per line.", action="store_true"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-q",
|
||||
"--quiet",
|
||||
help="Do not print config, only parse.",
|
||||
action="store_true",
|
||||
)
|
||||
|
||||
|
||||
@cmd_parse(podman_compose, "port")
|
||||
|
Reference in New Issue
Block a user