Giter Club home page Giter Club logo

Comments (5)

Hyde46 avatar Hyde46 commented on August 27, 2024

Added simple export functionality.
Next add dialogue asking which namespace to export

from hoard.

qb60 avatar qb60 commented on August 27, 2024

Hello. I would like to do that.
Will MultiSelect with namespaces and then MultiSelect with commands from selected namespaces be enough for that or some more complex interface is needed?

from hoard.

Hyde46 avatar Hyde46 commented on August 27, 2024

Great!
I'd propose this workflow:

  • hoard export is run
  • dialoguer asks a Yes/No question; something like Export specifc namespaces?
  • Collect all namespaces ( See here. Make this calculation a method of CommandTrove )
  • As you suggested use MultiSelect with the namespaces

Extra, but could wait:

  • Ask if only specific commands should be exported of the namespaces
  • If yes, iterate through all namespaces and create a multiselect per namespace to select commands to export.

Finally:

  • Create CommandTrove from the selected commands and export it as seen here

Do you have more thoughts on this? Any suggestions or changes?

I think I've tried MultiSelect before of dialoguer. I'm not super happy with dialoguer, it seems to be quite buggy at times.

from hoard.

qb60 avatar qb60 commented on August 27, 2024

Seems to be okay, I supposed almost the same workflow.
If MultiSelect supported Select all / Unselect all feature we probably wouldn't even need to ask about exporting specific namespaces/commands, but it doesn't support it yet unfortunately.

from hoard.

Hyde46 avatar Hyde46 commented on August 27, 2024

Nice!
That's true, though I've not gone through the available documentation/ code of dialoguer yet. Maybe there is?
Anyhow, I'd say go for it!
Assigning this to you

from hoard.

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.