awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

Add progress status for long running commands #67

Open donnemartin opened 8 years ago

donnemartin commented 8 years ago

This request seems to be quite popular (measured by Reddit upvotes).

himynameisjoeyc

Hopefully they include some progress bars, time remaining and current operation info( also prays for indexes) on s3 api...

Reddit Source #1

himynameisjoeyc

Does this by chance include an S3 sync progress metric?

Reddit Source #2

Also relates to: https://github.com/awslabs/aws-shell/issues/30

This might be more of an 'epic' that we eventually break out into smaller chunks.

jamesls commented 8 years ago

This would be really useful. I'm not sure how feasible this is in the aws-shell. We just shell out to the aws-cli, which manages the entire transfer/sync process. Because of this we don't have a way for the CLI to give us fine grained data how much data has been transferred. We'd need to update the CLI to communicate this info.

Crazy idea: boto3 provides the granularity we need to provide progress bars for s3. We could somehow call boto3 directly within the shell to upload/download files (unfortunately there's no sync functionality in boto3), but I have no idea how to expose that in a consistent way that would make sense to users. Just thinking about loud...

donnemartin commented 8 years ago

Interesting idea with mixing in boto3 :)

I think the first option you proposed would be cleaner and would also solve the problem for users on aws-cli who are also experiencing this issue. It sounds like it might be tough from a technical perspective though.