Skip to content
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

Give progress information on long running commands #1814

Closed
robert-ancell opened this issue Sep 21, 2021 · 2 comments
Closed

Give progress information on long running commands #1814

robert-ancell opened this issue Sep 21, 2021 · 2 comments
Labels
P - Low S - Triaged Must have priority label

Comments

@robert-ancell
Copy link
Contributor

Some commands like ua enable can take a long time to complete. It would be useful to express this on the command line so a graphical application can inform the user about this.

Possible solution:

$ sudo ua enable foo --format=json
{"progress": 10, "status-code": "checking", "status": "Checking for foo service"}
{"progress": 30, "status-code": "enabling", "status": "Enabling foo"}
{"progress": 60, "status-code": "enabling", "status": "Enabling foo"}
{"progress": 90, "status-code": "enabling", "status": "Enabling foo"}
{"progress": 95, "status-code": "finalizing", "status": "Finalizing"}
{"progress": 100, "status-code": "done", "status": "Done"}
@robert-ancell robert-ancell changed the title Give status information on long running commands Give progress information on long running commands Sep 21, 2021
@orndorffgrant
Copy link
Collaborator

Tracking in SC-430

@orndorffgrant orndorffgrant added S - Triaged Must have priority label P - Low and removed triaged labels Sep 18, 2024
@orndorffgrant
Copy link
Collaborator

I mis-read this issue as another one when I changed the labels earlier.

This is implemented for the API versions of attach and enable using the --show-progress flag for their API functions.
For example, sudo pro api --show-progress u.pro.services.enable.v1 --args service=esm-infra will give json lines of each step.

However, I totally failed to document this 🤦 I opened a new issue to represent the documentation we need to write #3315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P - Low S - Triaged Must have priority label
Projects
None yet
Development

No branches or pull requests

2 participants