Merge branch 'master' into windows

This commit is contained in:
oiatz 2021-03-27 00:23:32 +08:00 committed by GitHub
commit 2e68bd028f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -17,8 +17,6 @@ On top of that, there are a lot of convenient features and abstractions.
Since Pueue is not bound to any terminal, you can control your tasks from any terminal on the same machine.
The queue will be continuously processed, even if you no longer have any active ssh sessions.
**Announcement:** v0.10.0 changed and broke a lot of things. Please check the release [Changelog](https://github.com/Nukesor/pueue/blob/master/CHANGELOG.md).
- [Features](https://github.com/Nukesor/pueue#features)
- [Why should I use it](https://github.com/Nukesor/pueue#why-should-i-use-it)
- [Installation](https://github.com/Nukesor/pueue#installation)

View file

@ -319,7 +319,7 @@ pub enum SubCommand {
quiet: bool,
},
/// Remove all finished tasks from the list (also clears logs).
/// Remove all finished tasks from the list.
Clean {
/// Only clean tasks that finished successfully.
#[clap(short, long)]

View file

@ -1,3 +1,4 @@
use pueue_lib::log::clean_log_handles;
use pueue_lib::network::message::*;
use pueue_lib::state::SharedState;
use pueue_lib::task::TaskStatus;
@ -28,6 +29,8 @@ pub fn remove(task_ids: Vec<usize>, state: &SharedState) -> Message {
for task_id in &not_running {
state.tasks.remove(task_id);
clean_log_handles(*task_id, &state.settings.shared.pueue_directory);
}
let text = "Tasks removed from list";