Commit Graph

11 Commits

Author SHA1 Message Date
Stefan Agner d222ddd298
Start HA CLI interactively ()
Use -o (--open-tty) to start the child with stdin as /dev/tty to allow
interactive mode. This is required by some commands like the new device
wipe command added with https://github.com/home-assistant/cli/pull/464.
2024-03-11 21:06:51 +01:00
Stefan Agner 79cf25964b
Add note about login command () 2023-11-22 10:02:07 +01:00
Alex Crawford 289b5fed66
Disambiguate `ha` and `hardware` commands ()
Attempting to use the hardware command without a leading "ha" results in
the following error:

    ha > hardware
    Note: Leading 'ha' is not necessary in this HA CLI
    Error: unknown command "rdware" for "ha"

Checking that the command starts with "ha " (note the space) will ensure
that the command string actually starts with a call to `ha`.
2021-06-19 16:43:50 +02:00
Stefan Agner a5a9555626
Strip unnecessary leading ha ()
In the HA CLI the prompt already indicates that we are running in the HA
CLI (similar to virsh or other commands with built-in shell). However,
in regular shell the ha command needs to be used, so that is what most
documentation says. Note that 'ha' is not necessary and strip it from
the command.
2021-05-27 16:49:00 +02:00
Stefan Agner a0c9313a0d
Fix passing arguments with quotes ()
Don't use read since it gets rid of quotes, which ultimately doesn't
allow arguments with spaces (such as --password "pw with spaces").

This requires xargs which then passes each word as an argument and
words in quotes as a single argument.

Fixes: 
2021-05-25 16:20:37 +02:00
Pascal Vizeli e67f57b068
Fix syntax for HA banner () 2021-02-02 15:57:16 +01:00
Pascal Vizeli da99516fab
Bump CLI 4.10.0 ()
* Bump CLI 4.10.0

* Update .devcontainer/devcontainer.json

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-02-02 15:34:23 +01:00
Stefan Agner c67fcedd13
Fix preposition in banner text () 2020-11-30 08:59:09 +01:00
Pascal Vizeli 3671dc0edd
Fix prompt () 2020-09-04 12:59:18 +02:00
Pascal Vizeli cdf0e9cd25
Update cli 4.4.0 / use rlwrap & color ()
* Update cli 4.4.0 / use rlwrap & color

* fix lint
2020-09-04 12:27:29 +02:00
Pascal Vizeli 8381432979
Next generation of cli ()
* Next generation of cli

* Fix shell check
2020-03-27 15:06:24 +01:00