feat: basic tasks done with dependencies over Zed env variables

This commit is contained in:
2025-02-23 12:02:46 +01:00
parent cd0e1c0acd
commit 23f37e94ee
3 changed files with 44 additions and 35 deletions

View File

@@ -3,38 +3,43 @@
// │- author: Daniel Heras Quesada │
// ╰───────────────────────────────╯
[
{
"label": "Example task",
"command": "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done",
"env": {
"foo": "bar"
},
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
{
"label": "Example task",
"command": "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done",
"env": {
"foo": "bar"
},
{
"label": "Build migrate",
"command": "cd code; npm run build-migrate",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
},
{
"label": "Lazygit",
"command": "lazygit",
"args": [],
"env": {},
"use_new_terminal": true,
"allow_concurrent_runs": false,
"actions": [
{
"action": "workspace::OpenFullScreen"
}
]
}
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
},
{
"label": "Build migrate",
"command": "bash ~/.config/zed/tasks/build-migrate.sh",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
},
{
"label": "Lazygit",
"command": "lazygit",
"args": [],
"env": {},
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal_target": "center"
},
{
"label": "Blueprints",
"command": "~/Packages/code-templates/code_templates",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
}
]