eficode-academy / git-katas

A set of exercises for deliberate Git Practice
MIT License
1.32k stars 860 forks source link

Squelch setup output #240

Open praqma-thi opened 4 years ago

praqma-thi commented 4 years ago

When running the setup.sh(/setup.ps1?) scripts, you get blasted by the output of git making multiple commits, branches, checkouts, etc. We can definitely smooth this out.

My initial thought would be to put the contents of the current setup.sh scripts in a hidden file, e.g. .actualSetup.sh, then have setup.sh simply call that, piping it to /dev/null:

#!/bin/bash
echo "Setting up exercise.."
if (args contains --debug or something)
    ./actualSetup.sh
else
    ./.actualSetup.sh > /dev/null
fi
echo "Done!  Enjoy!"
praqma-thi commented 4 years ago

The suggestion definitely makes things a little more complicated, though, so I'm open for any suggestions