teslatte/justfile
gak a64a04e3d7
feat: rename and add api calls (energy_sites)
- rename api/cli energy_sites to products (to match the api)
- add energy_sites site_status
- add energy_sites live_status
- add energy_sites site_info
2023-09-05 13:48:16 +10:00

27 lines
686 B
Makefile

all_tests: no_token_test token_tests
no_token_test:
cargo clippy --all-targets -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings
cargo test
# These tests require an access token saved in a file called "cli.json"
token_tests:
cargo run -- api vehicles
cargo run --no-default-features --features cli -- api vehicles
cargo run -- api products
publish version:
git diff-index --quiet HEAD
# BSD sed
sed -i '' "s/^version = \".*\"$/version = \"{{version}}\"/" Cargo.toml
git add Cargo.toml
git commit -m "chore: v{{version}}"
git tag "v{{version}}"
git push origin "v{{version}}"
git push
cargo publish