Remove podman-compose-toml.zsh

Will set it up in my dotfiles instead (doc coming soon)
This commit is contained in:
Marko Korhonen 2023-04-08 21:33:36 +03:00
parent c3d7d5be52
commit 6aad22192a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 1 additions and 19 deletions

View file

@ -3,10 +3,7 @@
This is all of the containers running in my server and their
configuration. I'm using podman in rootless mode and docker-compose
with podman's docker socket emulation. All compose files are in TOML
(just because I hate YAML). A helper function for ZSH `pct`
(stands for **P**odman **C**ompose **T**OML) is available in
link:https://git.korhonen.cc/FunctionalHacker/podman-compose/src/branch/main/podman-compose-toml.zsh[podman-compose-toml.zsh]
(just because I hate YAML)
== TODO

View file

@ -1,15 +0,0 @@
# source this file in ZSH to get TOML support in docker-compose
# via the pct command
# yj is required for this to work.
pct () {
local file_path=('./podman-compose.toml')
zmodload zsh/zutil
zparseopts -D -K -- f:=file_path || return 1
file_path=${file_path[-1]}
if [[ ! -a "$file_path" ]]
then
echo "File $file_path does not exist!"
return 1
fi
yj -ty < $file_path | docker-compose -f - $@
}