Docs.rs
homeassistant-cli-0.2.0
homeassistant-cli 0.2.0
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
rvben
Dependencies
clap ^4
normal
clap_complete ^4
normal
dirs ^6
normal
futures-util ^0.3
normal
owo-colors ^4
normal
reqwest ^0.12
normal
serde ^1
normal
serde_json ^1
normal
terminal_size ^0.4
normal
tokio ^1
normal
tokio-tungstenite ^0.24
normal
toml ^0.8
normal
tempfile ^3
dev
tokio ^1
dev
tokio-tungstenite ^0.24
dev
wiremock ^0.6
dev
Versions
29.23%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module output
homeassistant_
cli
0.2.0
Module output
Module Items
Modules
Structs
Enums
Functions
In crate homeassistant_
cli
homeassistant_cli
Module
output
Copy item path
Source
Modules
§
exit_
codes
Structs
§
Output
Config
Enums
§
Output
Format
Functions
§
colored_
entity_
id
Dim the domain prefix of an entity ID, leaving the name at normal brightness.
light.left_key_light
→
[dim]light.[/dim]left_key_light
colored_
state
Color a Home Assistant state value for human display.
kv_
block
Render a two-column key/value block with aligned values.
mask_
credential
Mask a credential for safe display. Keeps first 6 and last 4 chars for long values; fully obscures short values.
relative_
time
Format an ISO 8601 timestamp as a human-friendly relative time (“2m ago”). Falls back to the raw string if parsing fails.
table
Render a table with bold headers, dimmed separator, and ANSI-aware column alignment. Rows may contain pre-colored strings; alignment is based on visible width. Automatically shrinks the widest column(s) to fit within the terminal width.