Add existing project init to project-init

This commit is contained in:
coolneng 2022-11-16 09:40:25 +01:00
parent 3df053ff6d
commit f6ace04d40
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ usage() {
echo "type git: VCS project" echo "type git: VCS project"
echo "type remote-git: VCS project with README, LICENSE and tests" echo "type remote-git: VCS project with README, LICENSE and tests"
echo "type src: Simple coding project" echo "type src: Simple coding project"
echo "type init: Initialize populated project"
echo "type doc: Assignment" echo "type doc: Assignment"
echo "type nix-ld: Run unpatched programs with Nix" echo "type nix-ld: Run unpatched programs with Nix"
echo "type datasci: Python data science project" echo "type datasci: Python data science project"
@ -74,6 +75,9 @@ elif [ "$type" = "src" ]; then
create_dir src create_dir src
touch .project touch .project
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "init" ]; then
touch .project
direnv_integration "nix"
elif [ "$type" = "nix-ld" ]; then elif [ "$type" = "nix-ld" ]; then
copy_nix_files "nix-ld" copy_nix_files "nix-ld"
direnv_integration "nix" direnv_integration "nix"