You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
I would like to ask this question because we found strange things with this part of commander.
script have a different behaviour depends on version. For example, script from unix-utils 2.27.1 saves placeholder about started time like this:
Script started on Tue 24 Apr 2018 04:22:21 AM MSK
even we have --quiet flag.
Also, we had a flaky experience with composer, that uses this implementation of commander and getting output from the command using tail.
We fixed this using common approach for running subprocesses.
But now it has a little bit different interface, then current implementation. For example, Notification class looks like this for supporting real-time output parsing (instead of tail):
sealed class Notification {
object Start : Notification()
data class Exit(val output: String) : Notification()
data class Output(val line: String) : Notification()
}
Would you like to have this changes in commander or it is important to have current behaviour or you don't want to merge breaking changes?
The text was updated successfully, but these errors were encountered:
Main reason to use script was the problem with output buffering.
For example when adb or emulator print really short output that doesn't overflow buffer we couldn't read it.
Few weeks I've been trying to solve this problem one way or another using Java piping api, but script -F was the only approach that worked in all test cases on all OSes.
I'm open to see how you solved it if you can submit a PR that would be great!
Commander is pre-v1, so we can introduce breaking changes, or we can also release a v1.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to ask this question because we found strange things with this part of commander.
script
have a different behaviour depends on version. For example,script
fromunix-utils 2.27.1
saves placeholder about started time like this:even we have
--quiet
flag.Also, we had a flaky experience with composer, that uses this implementation of commander and getting output from the command using tail.
We fixed this using common approach for running subprocesses.
But now it has a little bit different interface, then current implementation. For example,
Notification
class looks like this for supporting real-time output parsing (instead of tail):Would you like to have this changes in commander or it is important to have current behaviour or you don't want to merge breaking changes?
The text was updated successfully, but these errors were encountered: