aws-shell icon indicating copy to clipboard operation
aws-shell copied to clipboard

Add progress status for long running commands

Open donnemartin opened this issue 9 years ago • 2 comments

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.

donnemartin avatar Dec 17 '15 11:12 donnemartin

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...

jamesls avatar Dec 19 '15 00:12 jamesls

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.

donnemartin avatar Dec 19 '15 10:12 donnemartin