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. │
╰─────────────────────────┴───────────────────────────────────────────────────────────────────────────╯
```
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
I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
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>
* add Q&A session in README, and add `--label`, `--group` flag to spawn, add `output` sub command to acquire output easily
* make detailed to be a flag
* refactor: ✨ move in one commit
Eveything in modules should probably be changed to `exported` defs.
The idea is to move everything first to keep proper history.
* refactor: 📝 add modules readme (wip)
* refactor: ✨ small move
* refactor: 📝 changed nestring, updated modules readme
* refactor: 📝 to document or not to document
* fix: 🐛 themes
replaced the template to use `main` and regenerated them
from lemnos themes.
* Revert "fix: 🐛 themes"
This reverts commit 4918d3633c8d2d81950a0ed0cfd9eb84241bc886.
* refactor: ✨ introduce sourced
- Created a source `root` in which sourcable demos are stored.
Some might get converted to modules later on.
- Moved some files to bin too.
* fix: 🐛 fehbg.nu
* fix: 🐛 modules/after.nu
* moved some other stuff around
---------
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>