Remove podman-compose-toml.zsh
Will set it up in my dotfiles instead (doc coming soon)
This commit is contained in:
parent
c3d7d5be52
commit
6aad22192a
|
@ -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
|
||||
|
||||
|
|
|
@ -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 - $@
|
||||
}
|
Reference in a new issue