Skip to content

hass-cli wrapper sucks #9

@StayPirate

Description

@StayPirate

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.

dotfiles/.zshrc

Line 182 in d0985b6

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions