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

Improve "omero login" prompt #300

Open
pwalczysko opened this issue Aug 18, 2021 · 3 comments
Open

Improve "omero login" prompt #300

pwalczysko opened this issue Aug 18, 2021 · 3 comments

Comments

@pwalczysko
Copy link
Member

omero login
Previously logged in to outreach.openmicroscopy.org:4064 as trainer-1
Server: [outreach.openmicroscopy.org:4064]

See https://forum.image.sc/t/download-full-projects-with-their-datasets/56434/9 and also some experience during outreach is suggesting that the prompt as above is not perceived by a naive user as one which they can overwrite.

Suggestion :

  • Add a hinting message
omero login
Previously logged in to outreach.openmicroscopy.org:4064 as trainer-1
Hit Enter to accept value or type in your own:
Server: [outreach.openmicroscopy.org:4064]

cc @joshmoore

@joshmoore joshmoore transferred this issue from ome/omero-server Aug 18, 2021
@joshmoore
Copy link
Member

Transferred issue since the related change would need to be inserted at approximately https://github.com/ome/omero-py/blob/master/src/omero/plugins/sessions.py#L475, but likely conditionally since with all values were passed, nothing needs setting.

@joshmoore
Copy link
Member

You can see https://github.com/willmcgugan/rich#readme for features that you can potentially request (see #217)

@dominikl
Copy link
Member

Imo listing the default in [ ] and accepting it with a simple return or changing it by typing something else, is pretty standard CLI behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants