Smartling / smartling-cli

Smartling-cli is a library and CLI tool for managing Smartling projects. See the project's Wiki for user documentation.
https://github.com/Smartling/smartling-cli/wiki
MIT License
16 stars 12 forks source link

Add progress for files status command #26

Closed dimitrystd closed 7 years ago

dimitrystd commented 7 years ago

I have seen how people uses files status command. The problem with waiting time, it can take 10-30 sec on average project, but people doesn't see any feedback from cli after 5-10sec and terminate the command.

Possible solutions:

DoD: Write live progress to stderr

seletskiy commented 7 years ago

@dimitrystd: I've added very simple progress indicator to files status command, both for *nix and windows.

seletskiy commented 7 years ago

@dimitrystd: It's impossible to render evenly spaced table (e.g. properly columnized) and render data as soon as it comes from API. So, we need to choose: a) render table properly when data is ready; b) or render not columnzied properly but when next chunk of data arrives.

dimitrystd commented 7 years ago

Is it possible to write a progress into stderr and then render table when data is ready?

seletskiy commented 7 years ago

@dimitrystd: It's already done.

dimitrystd commented 7 years ago

Tested