-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added paging support for storage list commands. #5419
Conversation
View a preview at https://prompt.ws/r/Azure/azure-cli/5419 |
458b15e
to
b11e4bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from minor issues. Looks good to me.
item.next_marker = next_marker | ||
return item | ||
|
||
return list(map(set_marker, result)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use list comprehensions instead of map
https://www.safaribooksonline.com/library/view/python-cookbook/0596001673/ch01s11.html
View a preview at https://prompt.ws/r/Azure/azure-cli/5419 |
Please rebase. And does Aaron have any feedback of this? |
* check if dir exists instead of path * added paging, broke * resolved problems with non-listgenerator provided to transformer * history, setup version, tests * review feedback
* Revert "[AKS] list available k8s versions, add tab completers, refactor code (Azure#5475)" This reverts commit 1326d2f. * Revert "Added paging support for storage list commands. (Azure#5419)" This reverts commit 4e8ba81.
Closes: #3745
-"nextMarker" property added to every result of list output
-
list
commands now have--num-result
and--marker
as parameters.-minor fixes, and added tests
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Command Guidelines
(see Authoring Command Modules)