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` to use consistent terminology (dotenv instead of env)
- 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:
Janik von Rotz committed 2026-02-08 16:40:16 +01:00
1 parent a27e78af51
commit 904a69183f
6 files changed
+1683 -90

No files matched your search

Executable → Regular
+9 -9
View File
@@ -10,26 +10,26 @@ help-table() {
local max_cmd=7 max_opt=6 max_desc=11
rows+=("Command|Option|Description")
rows+=("init-project||Setup a taskfile project in the current directory.")
rows+=("clone-taskfile||Clone the taskfile.build repo.")
rows+=("init-project||Setup a taskfile project in the current directory.")
rows+=("init-dotenv-dir||Setup task dotenv dir.")
rows+=("template-dotenv||Generate .env from .env.template.")
rows+=("open-with-os||Open file or url with default application.")
rows+=("open-url-with-delay|[url][delay]|Open url after n seconds.")
rows+=("show-dotenv||Show info about the dotenv setup.")
rows+=("show-dotenv-setup||Show info about the dotenv setup.")
rows+=("ensure-directory|[path]|Ensure directory path exists.")
rows+=("create-symlink|[target][source]|Remove existing file/directory and create symlink.")
rows+=("create-symlink-files|[target][source]|Create symlink for files in source pattern.")
rows+=("activate-venv||Activate or initialize Python virtual env.")
rows+=("remove-venv||Remove the Python virtual env.")
rows+=("create-dotenv|[env][type]|Create env file of type nextcloud, odoo, upgrade.")
rows+=("list-dotenv||List .env files.")
rows+=("create-dotenv|[env][type]|Create .env file of type nextcloud, odoo, upgrade.")
rows+=("list-dotenv||List dotenv files.")
rows+=("show-dotenv|[env]|Output content of the .env file.")
rows+=("copy-dotenv|[env][env]|Copy .env file.")
rows+=("edit-dotenv|[env]|Open env file in default editor.")
rows+=("copy-dotenv|[env][env]|dotenv dotenv file.")
rows+=("edit-dotenv|[env]|Open .env file in default editor.")
rows+=("load-dotenv|[env]|Load and export .env file.")
rows+=("rename-dotenv|[env][env]|Rename .env file.")
rows+=("remove-dotenv|[env]|Remove environment config.")
rows+=("remove-dotenv|[env]|Remove .env file.")
rows+=("backup-dotenv-files|[path]|Archive and copy .env files to target location.")
rows+=("restore-dotenv-files|[path]|Extract and copy .env files from backup file.")
rows+=("commit-with-llm||Commit with llm generated commit message.")
@@ -45,8 +45,8 @@ help-table() {
rows+=("stage-git-folder|[path]|Stage all files in git folders in path.")
rows+=("status-git-folder|[path]|Show status of git folders in path.")
rows+=("update-submodule||Update git submodules.")
rows+=("save-dotenv-to-pass||Store content of .env in pass entry.")
rows+=("load-dotenv-from-pass||Restore content to .env from pass entry.")
rows+=("save-dotenv-to-pass|[file]|Store content of .env in pass entry.")
rows+=("load-dotenv-from-pass|[file]|Restore content to .env from pass entry.")
rows+=("save-pass-to-keepass|[pass][entry]|Store password to KeePass entry.")
rows+=("get-pass-from-keepass|[entry]|Get password from KeePass entry.")
rows+=("save-dotenv-to-keepass|[file]|Store content of .env in KeePass entry.")