Comments (5)
Added simple export functionality.
Next add dialogue asking which namespace to export
from hoard.
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.
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.
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.
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)
- Is trove.com's down? HOT 1
- Feature request: Make it compatible with Windows HOT 4
- Update trove.yaml when changing command parameter token
- suggest: read trove.yml in the current directory (or load with option) HOT 6
- Add flag to trove model wether its a local file or not global
- add Cargo.lock file to the repo HOT 2
- Allow name-based / num-based parameter tokens HOT 3
- Probably doesn't work on zsh+macos HOT 1
- add command to print shell configs HOT 2
- fix clippy lints
- Use struct arguments HOT 1
- Allow ending parameter token HOT 6
- Allow escape character HOT 2
- GUI command edit HOT 1
- GUI new command from history HOT 3
- Ubuntu .deb packages missing from releases HOT 3
- install.sh write BASH config to .zshrc not .bashrc HOT 3
- Customize tab highlight color HOT 1
- Select name space for new command HOT 1
- Named parameters using `hoard pick` are not interpreted as expected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoard.