Use built-in Click functions where possible #67
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#63 was first, using
click.echo
instead of a complex tempfile/manual editor call setup.Investigate what other click utility functions might be useful.
Candidate:
click.echo_via_pager
instead of manualless
call in VM log.Candidate:
click.confirm
for in-line confirmation of potentially-messy operations. Currently includes most Ceph removal tasks; also include all other removal tasks (VM, network, template, etc.) along with a--yes
option.Candidate:
click.progressbar
for VM provisioning with a--wait
flag similar to flush/unflush commands. Potentially implement this progressbar for flush/unflush as well.Candidate:
click.pause
for confirmation of some tasks - review for potential candidates.mentioned in commit
9e7d86d5cf
mentioned in commit
c183bc7fef
mentioned in commit
a197d9da80
closed
Not implementing progress bar for the flush command since that would be a little gross to hack in (since the API supports the wait functionality, rather than just the CLI like with provisioning). Otherwise, all useful-looking Click special objects have been implemented.