1.1 KiB
1.1 KiB
Suggested Commands
Rust formatting and checks:
cargo fmtcargo test -p wakey-control-planeSQLX_OFFLINE=true cargo test -p wakey-control-planecargo test -p wakey-linux -p wakey-corecargo test -p wakey-agent(may need elevated permissions if tests bind local sockets)cargo clippy -p wakey-control-plane --all-targets --all-featurescargo clippy -p wakey-linux -p wakey-core --all-targets --all-features
SQLx metadata after query macro changes:
scripts/prepare_sqlx_sqlite.sh
UI checks:
pnpm --dir ui typecheckpnpm --dir ui buildpnpm --dir ui format
Local run examples:
cargo run -- inventory <query>cargo run -- leasescargo run -- devscargo run -- wake --mac aa:bb:cc:dd:ee:ffcargo run -p wakey-agent -- serve --config /etc/wakey-agent/config.tomlcargo run -p wakey-control-plane -- serve --config-file /etc/wakey-control-plane/config.toml
Useful shell tools:
- Prefer
rgandrg --filesfor search. - Use
git status --short,git diff --stat, and focusedgit diff -- <path>before edits. - Avoid destructive git commands unless explicitly requested.