- Added `init-project` script to setup new taskfile projects with templates - Created `.gitignore.template` and `AGENTS.md.template` for standardized project setup - Implemented dynamic help table generation in `help-table` function - Updated `library.md` and `task.template` to include new `init-project` command - Added `init-project` to taskfile help documentation - Improved AGENTS.md with comprehensive coding conventions and agent guidance
25 lines
578 B
Bash
Executable File
25 lines
578 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
init-project() {
|
|
echo "Init git directory."
|
|
git init .
|
|
|
|
echo "Create taskfile directories."
|
|
mkdir -p tmp .prompt
|
|
|
|
echo "Copy gitgnore template."
|
|
cp "$HOME/taskfile.build/.gitignore.template" ./.gitignore
|
|
|
|
echo "Copy taskfile template."
|
|
cp "$HOME/taskfile.build/task.template" ./task
|
|
|
|
echo "Copy AGENTS.md template."
|
|
cp "$HOME/taskfile.build/AGENTS.md.template" ./AGENTS.md
|
|
|
|
echo "Touch default files."
|
|
touch ./README.md ./.env
|
|
|
|
echo "Copy license file."
|
|
cp "$HOME/taskfile.build/LICENSE" ./LICENSE
|
|
}
|