Skip to content

Improve the follow progress in console sink #284

@leonitousconforti

Description

@leonitousconforti

What is the problem this feature would solve?

The follow progress sink

/** @internal */
export const followProgressSink = Sink.forEach<JSONMessage, void, never, never>((message) =>
Effect.gen(function* () {
if (Predicate.isNotUndefined(message.status)) {
yield* Console.log(`${message.status}${message.progress ? " " : ""}${message.progress ?? ""}`);
} else if (Predicate.isNotUndefined(message.stream)) {
yield* Console.log(message.stream);
} else if (Predicate.isNotUndefined(message.aux)) {
yield* Console.log(message.aux.ID);
}
})
);

should look more like how docker output looks instead of just printing every message.

What is the feature you are proposing to solve the problem?

Use some type of progress bar instead of just printing every message

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions