Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ it to the repo, if the file has bad syntax, it will not be added to the repo.

- Javascript (via node)
- Go (via gofmt)
- Rust (via rustfmt)

Support comes from external linkers, we are merely a "linker curator" package.

Expand Down
5 changes: 5 additions & 0 deletions g
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ do_add() {
php -l $file && git $CMD $file
printf "$(tput sgr0)"
;;
*.rs )
printf "$(tput setaf 1)"
rustfmt $file && git $CMD $file
printf "$(tput sgr0)"
;;
* )
echo "$(tput setaf 3)Warning, file extension is Unchecked, please add a checker to g (https://github.com/dataf3l/g), with your help, we can have a world where nothing is Unchecked.$(tput sgr0)"
git $CMD $file
Expand Down