1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00
Commit graph

5 commits

Author SHA1 Message Date
shimeoki
45934922f1
fix: pause in background_task (#1138)
i found out that it worked incorrectly, so i fixed it based on other
functions in the module
2025-06-29 13:07:57 -05:00
Philipp A.
ee7422a12a
Add subcommand list to task module (#1039)
Could use some polish, but with this, after

```nu
use .../task.nu
```

the command `task` exists and will output this

```console
$ task
╭─────────────────────────┬───────────────────────────────────────────────────────────────────────────╮
│ task clean              │ Remove tasks from the status list.                                        │
│ task edit               │ Edit the command, path or label of a stashed or queued task.              │
│ task group              │ Use this to add or remove groups.                                         │
│ task group add          │ Create a new group with a name.                                           │
│ task group remove       │ Remove a group with a name.                                               │
│ task kill               │ Kill specific running tasks or whole task groups.                         │
│ task log                │ Display the output of tasks.                                              │
│ task pause              │ Either pause a running tasks or a specific groups of tasks.               │
│ task queue              │ Queue stashed tasks for execution.                                        │
│ task remove             │ Remove tasks from the queue.                                              │
│                         │ Running or paused tasks need to be killed first.                          │
│ task restart            │ Restart failed or successful task(s).                                     │
│ task send               │ Send something to a task. Useful for sending confirmations such as "y\n". │
│ task set-parallel-limit │ Set the maximum parallel tasks for a group.                               │
│ task shutdown           │ Shutdown pueue and thus this module.                                      │
│ task spawn              │ Spawn a task to run in the background, even when the shell is closed.     │
│ task start              │ Resume operation of specific tasks or groups of tasks.                    │
│ task stash              │ Stash a task that is not currently running.                               │
│ task status             │ Display the current status of all tasks.                                  │
│ task switch             │ Switches the queue position of two tasks.                                 │
│                         │ Only works for queued or stashed tasks.                                   │
│ task wait               │ Wait until the provided tasks are finished.                               │
╰─────────────────────────┴───────────────────────────────────────────────────────────────────────────╯
```
2025-02-08 06:50:44 -06:00
Stefan Holderbach
ba13f5ca60
Fix input-output signatures (#999)
Since 0.101.0 we will finally catch more illegal `def` signatures. As
the grammar for input/output types is rather restricted, this would
error otherwise
2024-12-22 07:58:11 -06:00
14e77c7ec8
background_task: Fix quoted commands and fix deprecation of implicit spreading and clarify docs (#752) 2024-02-05 06:28:48 -06:00
RGBCube
9700391563
Rewrite and expand background task module (#691)
Also renamed the module to task instead of job,
https://www.nushell.sh/book/background_task.html will need updating.

Other than that, this should work.

---------

Co-authored-by: RGBCube <RGBCube@users.noreply.github.com>
2023-12-12 13:06:14 -06:00