switchbot-api2 0.2.2

SwitchBot device control
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -exo pipefail

cargo fmt --check
cargo check --all-features --all-targets
cargo clippy --all-features --all-targets -- -Dwarnings
cargo build --release --all-features --all-targets

set +x
for f in examples/*.rs; do
    example=$(echo $f | sed 's|examples/||' | sed 's|.rs||')
    printf "\n\e[1;36m============================================================\e[0m\n"
    printf "\e[1;36m$example\e[0m\n"
    printf "\e[1;36m============================================================\e[0m\n"
    cargo run --release --all-features --example=$example
done