1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00
Commit graph

11 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
Jan Klass
618c0c035d
In task module mention job command (nushell background jobs) (#1107) 2025-04-29 11:41:17 -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
Maxim Uvarov
afde2592a6
use typos for corrections (#833)
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
2024-05-08 06:47:54 -05:00
Rayan Amal
5782e2b5d2
Update README.md for background tasks (#826) 2024-04-28 16:07:57 -05: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
WindSoilder
920cf73cbb
Improve background job.nu (#607)
* 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
2023-09-14 06:28:08 -05:00
WindSoilder
e61b94efce
use closure instead of block (#602) 2023-09-12 08:41:12 -05:00
Mel Massadian
c47ccd42b8
refactor: (#418)
* 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>
2023-04-25 17:56:25 -05:00