-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Immediate follow #595
Immediate follow #595
Conversation
26bbcc8
to
c518ebb
Compare
c518ebb
to
a2c9946
Compare
Test Results 3 files 19 suites 3m 25s ⏱️ Results for commit ccd3cb2. ♻️ This comment has been updated with latest results. |
a2c9946
to
8032134
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #595 +/- ##
==========================================
+ Coverage 80.80% 80.89% +0.09%
==========================================
Files 74 75 +1
Lines 5912 5942 +30
==========================================
+ Hits 4777 4807 +30
Misses 1135 1135 ☔ View full report in Codecov by Sentry. |
3553aac
to
07a8dea
Compare
07a8dea
to
6c505d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for working on this :)
Tested:
- follow works with fast command:
./pueue add -i --follow -- 'ls'
- follow continues command in background on ctrl+c
- follow requires immediate flag to be set
I have a few very small comments. You can think about these if you want or ignore them.
- the error message when using
--follow
without-i
might be unclear. it says "error: the following required arguments were not provided: --immediate", but it's not obvious that --immediate is only required when --follow is given. i don't know if this is easy to change in the argument parsing library - if you Ctrl+C while following, it might not be obvious that the task continues. for comparison, when pressing Ctrl+Z in a shell, it prints
^Zfish: Job 2, 'sleep 100' has stopped
- i'm not sure if this was deliberate, but the new task ID is not shown. i think it's useful to know the ID for using with other commands. a message like
New task added (id 18).
(same as usingadd
without follow) could also help address the previous point.
Thanks again!
|
Re (3), I think the output should have the output of Re (2), I understand. |
|
6c505d7
to
ccd3cb2
Compare
I changed the behavior to print the I'll also merge this MR for the time being, but I don't plan to add any further features that aid Pueue mimicking as a shell background task manager. Stuff like that is the job of the shell itself :) |
Resolves #592