mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-07 06:29:42 +01:00
#47: version command
This commit is contained in:
parent
9684429157
commit
dee813a4b6
@ -33,7 +33,7 @@ except ImportError:
|
|||||||
import json
|
import json
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
__version__ = '0.1.5'
|
__version__ = '0.1.6dev'
|
||||||
|
|
||||||
PY3 = sys.version_info[0] == 3
|
PY3 = sys.version_info[0] == 3
|
||||||
if PY3:
|
if PY3:
|
||||||
@ -894,6 +894,11 @@ class cmd_parse:
|
|||||||
# actual commands
|
# 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')
|
@cmd_run(podman_compose, 'pull', 'pull stack images')
|
||||||
def compose_pull(compose, args):
|
def compose_pull(compose, args):
|
||||||
for cnt in compose.containers:
|
for cnt in compose.containers:
|
||||||
|
Loading…
Reference in New Issue
Block a user