at main 2.1 kB view raw
1// Static tasks configuration. 2// 3// Example: 4[ 5 { 6 "label": "watch and run", 7 "command": "watchexec --restart --verbose --wrap-process=session --stop-signal SIGTERM --watch src/ -- \"gleam run -m build && bunx light-server -c ls.json\"", 8 "use_new_terminal": false, 9 "allow_concurrent_runs": false, 10 // What to do with the terminal pane and tab, after the command was started: 11 // * `always` — always show the task's pane, and focus the corresponding tab in it (default) 12 // * `no_focus` — always show the task's pane, add the task's tab in it, but don't focus it 13 // * `never` — do not alter focus, but still add/reuse the task's tab in its pane 14 "reveal": "never", 15 // Where to place the task's terminal item after starting the task: 16 // * `dock` — in the terminal dock, "regular" terminal items' place (default) 17 // * `center` — in the central pane group, "main" editor area 18 "reveal_target": "center", 19 // What to do with the terminal pane and tab, after the command had finished: 20 // * `never` — Do nothing when the command finishes (default) 21 // * `always` — always hide the terminal tab, hide the pane also if it was the last tab in it 22 // * `on_success` — hide the terminal tab on task success only, otherwise behaves similar to `always` 23 "hide": "always", 24 // Which shell to use when running a task inside the terminal. 25 // May take 3 values: 26 // 1. (default) Use the system's default terminal configuration in /etc/passwd 27 // "shell": "system" 28 // 2. A program: 29 // "shell": { 30 // "program": "sh" 31 // } 32 // 3. A program with arguments: 33 // "shell": { 34 // "with_arguments": { 35 // "program": "/bin/bash", 36 // "args": ["--login"] 37 // } 38 // } 39 "shell": "system", 40 // Represents the tags for inline runnable indicators, or spawning multiple tasks at once. 41 "tags": [] 42 } 43]