diff --git a/scripts/o1-clone b/scripts/o1-clone new file mode 100755 index 0000000..e276f21 --- /dev/null +++ b/scripts/o1-clone @@ -0,0 +1,37 @@ +#!/bin/bash +# Script to clone from github.com/operate-first/ and setup the environment +# (C) 2021 Karsten Wade . +# +# This barebones script is not very clever, because it is just trying to +# clone a repo and set it up according to Operate First community practices: +# https://URL_FOR_COMMUNITY_PRACTICES_NEEDED +# +# Use: +# ./o1-tools/bin/o1-clone repo-name +# +# For example: +# ./o1-tools/bin/o1-clone community-handbook +# +# +# Let's presume you want something from the /operate-first/ org and take in +# the first bash variable as the repo name: +git clone git@github.com:operate-first/$1.git +# Enter the project to prepare the environment +cd $1 +# Install pre-commit hooks and whatever else it does +pre-commit install +# +# That's it for now, what other environment activities could we do here?