EtherTW / Terms

翻譯區塊鏈相關專有名詞
https://ethertw.github.io/Terms/
MIT License
12 stars 4 forks source link

ci: format checks #4

Closed antoncoding closed 1 year ago

antoncoding commented 1 year ago

Summary

Run check and panic if not sorted:

cargo run -- --check
antoncoding commented 1 year ago

Thanks for adding the CI check and the formatting check. I added some feedback.

I noticed some duplicated logic in the check_terms/src/main.rs. Can we move them to src/main.rs?

Totally reasonable. I wasn't paying attention to the root crate. Just added a --check flag into main.rs, and now we can just run cargo run -- --check on the root directory instead of switching between modules