Skip to content

Instantly share code, notes, and snippets.

@samuelematias
Forked from rogood/pre-commit
Created July 7, 2020 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelematias/48d1df424126cb373aef094c94728950 to your computer and use it in GitHub Desktop.
Save samuelematias/48d1df424126cb373aef094c94728950 to your computer and use it in GitHub Desktop.
Flutter Pre Commit Hook with Console Messages
#!/usr/bin/env bash
printf "\e[33;1m%s\e[0m\n" 'Running the Flutter formatter'
flutter format .
printf "\e[33;1m%s\e[0m\n" 'Finished running the Flutter formatter'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment