Skip to content

Commit

Permalink
update: location of creating project structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Jun 18, 2024
1 parent 6a2ef26 commit bfaa5fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
22 changes: 21 additions & 1 deletion .vscode/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,24 @@ if [ -d "$PROJECT_FOLDER/venv" ]; then
fi

source $PROJECT_FOLDER/venv/bin/activate
fi
fi

# Auto Create Project Note Structure.
function create_project_structure () {
if [ -f "index.md" ];then # lock the project folder
return
fi
mkdir -p $PROJECT_FOLDER/{hosts,users,services}
touch $PROJECT_FOLDER/hosts/host-list.md
touch $PROJECT_FOLDER/users/user-list.md
touch $PROJECT_FOLDER/services/service-list.md
touch $PROJECT_FOLDER/index.md
echo "Project Folder sturcture created completed!"
}
create_project_structure
unset -f create_project_structure

function clean_project_structure () {
rm -rf $PROJECT_FOLDER/{hosts,users,services} $PROJECT_FOLDER/index.md
echo "Project Folder sturcture cleaned completed!"
}
18 changes: 0 additions & 18 deletions .vscode/env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,3 @@ function wfuzz_vhost_https () {
wfuzz -c -w $wordlist -H "Host: FUZZ.$host" -u "https://$host" $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19
}

function create_project_structure () {
if [ -f "index.md" ];then # lock the project folder
return
fi
mkdir -p $PROJECT_FOLDER/{hosts,users,services}
touch $PROJECT_FOLDER/hosts/host-list.md
touch $PROJECT_FOLDER/users/user-list.md
touch $PROJECT_FOLDER/services/service-list.md
touch $PROJECT_FOLDER/index.md
echo "Project Folder sturcture created completed!"
}
create_project_structure
unset -f create_project_structure

function clean_project_structure () {
rm -rf $PROJECT_FOLDER/{hosts,users,services} $PROJECT_FOLDER/index.md
echo "Project Folder sturcture cleaned completed!"
}

0 comments on commit bfaa5fe

Please sign in to comment.