Add remote-git option in project-init
This commit is contained in:
parent
f05cde75a3
commit
a6196c344e
|
@ -3,6 +3,7 @@
|
|||
usage() {
|
||||
echo "Usage: project-init <type>"
|
||||
echo "type git: VCS project"
|
||||
echo "type remote-git: VCS project with README, LICENSE and tests"
|
||||
echo "type src: Simple coding project"
|
||||
echo "type doc: Assignment"
|
||||
exit 1
|
||||
|
@ -15,6 +16,14 @@ fi
|
|||
type=$1
|
||||
|
||||
if [ "$type" = "git" ]; then
|
||||
git init
|
||||
cp ~/Documents/IT/shell.nix .
|
||||
mkdir src data
|
||||
git add ./*
|
||||
git commit -m "Initial commit"
|
||||
lorri init
|
||||
direnv allow
|
||||
elif [ "$type" = "remote-git" ]; then
|
||||
git init
|
||||
touch README.org
|
||||
cp ~/Documents/IT/gpl-3.0.md LICENSE.md
|
||||
|
|
Loading…
Reference in New Issue