feat: add update-template command to synchronize task.template with library.md
- Added `update-template` command that extracts rows from `library.md` and updates `task.template` - Implemented logic to replace existing rows in `task.template` with current rows from `library.md` - Added `update-template` to help-table for documentation and discoverability - Updated `library.md` and `task.template` to include new `update-template` command - Removed outdated prompt script that was no longer needed - Ensured all rows from `library.md` are properly synchronized with `task.template`
This commit is contained in:
7 files changed
+353
-265
No files matched your search
+13
-3
@@ -6,7 +6,17 @@ layout: layouts/base.njk
|
||||
|
||||
The task file from the specification is very basic. Commands can also have parameters and call each other.
|
||||
|
||||
The following is a collection of more complex task file patterns.
|
||||
The following is a collection of advanced task file patterns.
|
||||
|
||||
## Load dotenv variables.
|
||||
|
||||
Load environment variables from the `.env` file.
|
||||
|
||||
```bash
|
||||
if [[ -a ".env" ]]; then
|
||||
source .env
|
||||
fi
|
||||
```
|
||||
|
||||
## Set default parameter
|
||||
|
||||
@@ -84,7 +94,7 @@ template-with-env() {
|
||||
}
|
||||
```
|
||||
|
||||
## Create Python virtual env for git branch
|
||||
## Create Python virtual env for git branch
|
||||
|
||||
Initialize Python virtual env with uv.
|
||||
|
||||
@@ -312,4 +322,4 @@ if [[ -d ".git" ]]; then
|
||||
export $(cat ".env.$GIT_BRANCH" | sed 's/^#.*//g' | xargs)
|
||||
fi
|
||||
fi
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user