The hass-cli command is located at .local/bin/hass-cli. It directly runs a container without performing any check before. It just creates the container in case it doesn't exist yet.
Some check that needs to be added are:
- is podman installed
- because the container image is local, does it exist?
Moreover zsh eval hass-cli (!) in order to load auto-completion.
|
eval "$(_HASS_CLI_COMPLETE=zsh_source hass-cli)" |
This is very bad because the wrapper is not meant to return an output that can be used with eval.
hass-cli was introduced at d0985b6.
Instead of fixing it I could also consider/research to replace it with sth better maintained.
The
hass-clicommand is located at.local/bin/hass-cli. It directly runs a container without performing any check before. It just creates the container in case it doesn't exist yet.Some check that needs to be added are:
Moreover zsh
evalhass-cli(!) in order to load auto-completion.dotfiles/.zshrc
Line 182 in d0985b6
This is very bad because the wrapper is not meant to return an output that can be used with
eval.hass-cliwas introduced at d0985b6.Instead of fixing it I could also consider/research to replace it with sth better maintained.