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
2 changed files with 1 additions and 19 deletions
|
@ -3,10 +3,7 @@
|
||||||
This is all of the containers running in my server and their
|
This is all of the containers running in my server and their
|
||||||
configuration. I'm using podman in rootless mode and docker-compose
|
configuration. I'm using podman in rootless mode and docker-compose
|
||||||
with podman's docker socket emulation. All compose files are in TOML
|
with podman's docker socket emulation. All compose files are in TOML
|
||||||
(just because I hate YAML). A helper function for ZSH `pct`
|
(just because I hate YAML)
|
||||||
(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]
|
|
||||||
|
|
||||||
|
|
||||||
== TODO
|
== 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