feat(bin): add remove-venv function to manage Python virtual environments

- Introduce `remove-venv` function to delete `.venv` directory
- Document `remove-venv` in `library.md` under Python section
- Add `remove-venv` to help table in `task.template`
- Maintain consistent formatting and structure with existing code
This commit is contained in:
Janik von Rotz committed 2025-12-02 15:12:28 +01:00
1 parent d960b43ca2
commit 7269ed359d
3 files changed
+12

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
remove-venv() {
rm -rf .venv
}
+6
View File
@@ -93,6 +93,12 @@ printf "$column" 'create-symlink-files' '[source][target]' 'Create symlink for f
printf "$column" 'activate-venv' '' 'Activate or initialize Python virtual env.'
```
### remove-venv
```bash
printf "$column" 'remove-venv' '' 'Remove the Python virtual env.'
```
## Environment
Manage `.env` files in the task config folder.
+1
View File
@@ -19,6 +19,7 @@ help-table() {
printf "$column" 'create-symlink-files' '[source][target]' 'Create symlink for files in source pattern.'
# Python
printf "$column" 'activate-venv' '' 'Activate or initialize Python virtual env.'
printf "$column" 'remove-venv' '' 'Remove the Python virtual env.'
# Environment
printf "$column" 'create-env' '[env][type]' 'Create env file of type nextcloud, odoo, upgrade.'
printf "$column" 'list-env' '' 'List env files.'