-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
PICARD-2526: Allow starting processing actions from the command line #2137
Conversation
Hm
Time to implement other commands and think about the (Sorry for the bad responsivity btw, I'll finish moving on Saturday/Sunday) |
@skelly37 skelly37#5 adds a bit more logging |
Update:
|
@skelly37 your last commit is titled "consider it ready", it wouldn't help one looking at commit history. In general, I think you should be more careful about your commit messages.Things like "almost done" or "typo fix v2" don't help anyone to understand what's the commit is about. In this case, since that was a draft pull request for a while, I think an interactive rebase / history cleanup is needed before merging. This was also the case with your others PRs. Nothing catastrophic, but we usually prefer clean explicit commit messages (and sometimes we get lazy too, so our commit messages aren't always fantastic...). Please just take care about that. |
Sorry about that, I get your point. Though, I'm personally used to the squash on merge flow, where commits serve mostly only the in-PR purposes. And actually I was going to mention this issue, too. Why doesn't Picard use squash on merge? The CI/CD works just fine so bisect is rather not a case and I can't think of any other reason not to squash. |
Usually we want to preserve dev history, it is better to have smaller commits, especially when it comes to use bisect to find when an issue was introduced. Commits that are squashed are typically:
Each commit is supposed to test successfully, that's not always easy for big feature introduction, but often that's more about code organization: introducing a bunch of methods without their calls (so those are no-op) until everything is in place, then add a commit enabling the added code. There's nothing written in stone in this matter, but the general rule is:
|
For example, e012e84 should be 2 small commits:
Why? Because those are independent changes. |
@zas Okay, understood, thanks for explaining your convention to me. My suggestion is then to split it into such commits commits:
Are you okay with that, assuming that none of you will request changes not related to the git? |
ping @phw |
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.
LGTM
Okay, all the ideas implemented, the PR is ready imo. I'd just like to ask anyone to manually test the |
I haven't implemented multiple files support on purpose. File paths can contain whitespaces, so it could lead to an unexpected behavior, as you have used ' ' as a separator. But anyway, |
I must be missing something because I don't understand your reluctance to accept multiple arguments for a command. If you look closely at the code I proposed, it parses the multiple arguments and creates a separate |
|
Arguments which include spaces should be quoted. That's standard behavior. For example, they should be entered as:
In addition, have you tested your current processing if a file path contains more than one consecutive space? I think you'll find that multiple spaces will be collapsed to a single space. This will not be the case if the arguments containing spaces (single or multiple) are enclosed within quotes. |
Okay, this way. Sorry, my brain got a lag :) Thanks for the suggestion, now I agree it has to be done. |
Summary
Users will be able to pass some commands to the existing instance with
-e
/--exec
flag.Problem
It would be useful to tell the existing Picard instance what to do, e.g. QUIT, useful in combination with the other single-instance mode improvements
Solution
Action