Logo
Explore Help
Register Sign In
bingyi/claw-code
1
0
Fork 0
You've already forked claw-code
mirror of https://github.com/ultraworkers/claw-code.git synced 2026-07-04 13:22:36 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
07992b8a1bd4c5f0992079711eb9385527dc6a96
claw-code/scripts/fmt.sh

6 lines
88 B
Bash
Raw Normal View History

Make Rust formatting guidance runnable from repo root The Rust crate layout expects formatting to run from the rust directory, so add a root-level wrapper that preserves the working command while forwarding user flags like --check. Documentation now points contributors at the wrapper instead of the misleading virtual-workspace manifest invocation. Constraint: Root-level cargo fmt --manifest-path rust/Cargo.toml is misleading for this virtual workspace Rejected: Document cd rust && cargo fmt directly | a root wrapper gives one stable repo-root command Confidence: high Scope-risk: narrow Tested: scripts/fmt.sh --check Tested: git diff --check
2026-04-28 09:38:08 +00:00
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/../rust"
exec cargo fmt "$@"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 32ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API