Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Why you decided to use script and get all output through file? #16

@dimorinny

Description

@dimorinny

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions