-
-
Notifications
You must be signed in to change notification settings - Fork 6
Improve the follow progress in console sink #284
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
What is the problem this feature would solve?
The follow progress sink
the-moby-effect/src/internal/convey/sinks.ts
Lines 17 to 28 in c7180e3
| /** @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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed