Select binary
#1596
Replies: 1 comment 2 replies
-
Is To answer your question; shell scripting of some sort? Something like the following... compose *args:
#!/bin/sh
if [ "$(which podman-compose; echo $?)" -eq 0 ]; then
podman-compose podman-specific-argument {{args}}
elif [ "$(which docker-compose; echo $?)" -eq 0 ]; then
docker-compose docker-specific-argument {{args}}
elif [ "$(which docker; echo $?)" -eq 0 ]; then
docker compose docker-specific-argument {{args}}
else
echo "Sorry no composability commands found"
fi Or maybe using Nu or whatever cross-platform shell you use. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How should I select the right command to call, if different installations have different invocations?
I'm specifically looking at
podman-compose
,docker-compose
, anddocker compose
, and which one to call is going to vary.How do I check what programs are installed and select one?
Beta Was this translation helpful? Give feedback.
All reactions