Giter Site home page Giter Site logo

Menu Dialog about cli-menu HOT 12 CLOSED

ccsliinc avatar ccsliinc commented on August 18, 2024
Menu Dialog

from cli-menu.

Comments (12)

AydinHassan avatar AydinHassan commented on August 18, 2024

Well it was just created for that scenario - so the user performs an action and accepts that something will happen, it will block until it is accepted. It did not need a return value for our usage because to be unlocked it must be accepted.

What would you like an alternative for? What are you trying to achieve?

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

I was just trying to figure out if the user did not want to go through with the action what would they do. Even something as simple as hitting the escape key would allow them to exit the process. The only way I see it’s possible right now is if they actually exit the whole process itself. So for example if it was a confirm deletion dialogue and they accidentally hit it, then they have no way of backing out.

from cli-menu.

AydinHassan avatar AydinHassan commented on August 18, 2024

Of course, I don't dispute your use-case. It makes total sense. However, it is not supported right now. We would happily accept this as a feature request if you are interested in working on it :)

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

Yes, Thank you i will work on it.

from cli-menu.

AydinHassan avatar AydinHassan commented on August 18, 2024

Just remembered someone started this a while ago - maybe you can use it #65

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

I will have a pull request by Monday. It’s full working non breaking. Just learning to write tests.

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

PR sent.

from cli-menu.

AydinHassan avatar AydinHassan commented on August 18, 2024

Fixed with #248

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

Is there any way you can add a point release to this PR. I use this but it's a requirement for another component. I'd like it to pull this release.

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

Is there any way you can add a point release to this PR. I use this but it's a requirement for another component. I'd like it to pull this release.

from cli-menu.

AydinHassan avatar AydinHassan commented on August 18, 2024

@ccsliinc 4.2.0

from cli-menu.

ccsliinc avatar ccsliinc commented on August 18, 2024

@AydinHassan Thank you.

from cli-menu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.