mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-09 05:28:31 -04:00
parent
11f70642dd
commit
f3814c831d
3 changed files with 50 additions and 1 deletions
|
@ -40,6 +40,12 @@ fn main() -> nut_client::Result<()> {
|
|||
for var in conn.list_vars(&name)? {
|
||||
println!("\t\t- {}", var);
|
||||
}
|
||||
|
||||
// List UPS commands
|
||||
println!("\t Commands:");
|
||||
for cmd in conn.list_commands(&name)? {
|
||||
println!("\t\t- {}", cmd);
|
||||
}
|
||||
}
|
||||
|
||||
// Gracefully shut down the connection using the `LOGOUT` command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue