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:
3 files changed
+12
No files matched your search
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
remove-venv() {
|
||||
rm -rf .venv
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
@@ -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.'
|
||||
|
||||
Reference in new issue
Block a user