Commit a571db59 authored by Aral Balkan's avatar Aral Balkan

Updated better/stat to show the status of the various projects.

parent 2c533939
Pipeline #598 skipped
......@@ -62,6 +62,20 @@ showUsage(){
exit 0
}
showGitRepositoryStates(){
echo "\nGit repository states:"
echo "======================\n"
git status | grep 'working directory clean' > /dev/null && echo " ✓ Better is clean" || echo " ◍ Better is dirty"
runIn app "git status" | grep 'working directory clean' > /dev/null && echo " ✓ App is clean" || echo " ◍ App is dirty"
runIn builder "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Builder is clean" || echo " ◍ Builder is dirty"
runIn inspector "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Inspector is clean" || echo " ◍ Inspector is dirty"
runIn themes "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Themes is clean" || echo " ◍ Themes is dirty"
runIn content "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Content is clean" || echo " ◍ Content is dirty"
runIn drafts/sites "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Sites is clean" || echo " ◍ Sites is dirty"
runIn drafts/trackers "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Trackers is clean" || echo " ◍ Trackers is dirty"
runIn drafts/clouds "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Clouds is clean" || echo " ◍ Clouds is dirty"
runIn safari "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Safari is clean" || echo " ◍ Safari is dirty"
}
createGlobals(){
contentDirectory=~/better.fyi/content
......@@ -378,6 +392,7 @@ processGenericHook(){
hello
createGlobals
loginStatus
showGitRepositoryStates
listContentUnderActiveDevelopment
listOpenMergeRequests
goodbye
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment