From dee813a4b6f0f06131f021147ae09cef3eb5c875 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Fri, 4 Oct 2019 20:57:07 +0300 Subject: [PATCH] #47: version command --- podman_compose.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 7e9641c..e1a7b72 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -33,7 +33,7 @@ except ImportError: import json import yaml -__version__ = '0.1.5' +__version__ = '0.1.6dev' PY3 = sys.version_info[0] == 3 if PY3: @@ -894,6 +894,11 @@ class cmd_parse: # actual commands ################### +@cmd_run(podman_compose, 'version', 'show version') +def compose_version(compose, args): + print("podman-composer version ", __version__) + compose.podman.run(["--version"], sleep=0) + @cmd_run(podman_compose, 'pull', 'pull stack images') def compose_pull(compose, args): for cnt in compose.containers: