Commit 84e608ca authored by Aral Balkan's avatar Aral Balkan

Shows stats first; closes #18. Removed clouds section from stats; progress towards #17.

parent 31038dd3
Pipeline #641 skipped
......@@ -57,13 +57,13 @@ jsonProperty(){
showUsage(){
echo "\nUsage:\n"
echo " better/stat [<trackers/spotlight|sites/clouds>/<domain>]\n"
echo " better/stat [<trackers/spotlight|sites>/<domain>]\n"
echo "Provides you with general project status or specific status on domain, if specified.\n"
exit 0
}
showGitRepositoryStates(){
echo "\nGit repository states:"
echo "Git 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"
......@@ -71,10 +71,10 @@ showGitRepositoryStates(){
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 drafts/sites "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Drafts/Sites is clean" || echo " ◍ Drafts/Sites is DIRTY"
runIn drafts/trackers "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Drafts/Trackers is clean" || echo " ◍ Drafts/Trackers is DIRTY"
runIn safari "git status" | grep 'working directory clean' > /dev/null && echo " ✓ Safari is clean" || echo " ◍ Safari is DIRTY"
echo ""
}
createGlobals(){
......@@ -391,8 +391,8 @@ processGenericHook(){
#
hello
createGlobals
loginStatus
showGitRepositoryStates
loginStatus
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