-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement an interactive CLI #17
Comments
These thoughts popped into my head just now: With the idea that conjuror is a data processing tool, and not just an hour tracker, I feel like ideally the CLI would be $ conjuror cast track which would cast the "track" spell (the current track command) this would be sibling to: $ conjuror recipe track which would step the user through creating their own spells - "track" in this case. This set up process would basically build use a JSON schema to manage CSVs. We could provide a couple of commands as examples (track, hours-sheet), and recipes could be easily shared or plugged into a I'm thinking along the lines of "what do I want this flow to look like" and then we could go from there, rather than worrying what the architecture of the spell is going to be. Let's start with doing a single CLI command that combines track and getting hours, then see if we can automagically create the track recipe (ie Thoughts? |
@simonv3 yo dawg, check it. After merging in your changes, I tinkered around with things a bit. Changes of note as per your work towards recipes and this issue, of which there is overlap:
Note: that last point doesn't quite work ATM as it fails to actually do the data processing. That said, I think this is heading in the right direction. However, i'm unsure if we're fully synced up with the "recipes" idea in how we both conceive it! We should probably try to chat at some point! |
@simonv3 slightly more tinkering and we now have a
This should probably change to use datapackage.json files as opposed to CSV, but should wait for #42 |
Heh, interesting, I've just been using one csv file for all my projects, which means that it's been just a matter of pressing up and command. This is better organization wise (and how I did it originally, but it was a pain to keep track of all the files). I'll test it out. |
@simonv3 i've made the My current thinking is, this command (as well as |
@simonv3 OK just pushed a a pretty simple (took me 30 mins) but big improvement to the CLI change. It does the following:
Hooray, we pretty much have a working CLI app, except the following two things need to be done before closing this issue:
That said, there's probably bugs with the setup / config process since we've changed so many things in recent months. And we need to make creating new projects and such also have their own commands / be more intuitive. |
Cool, I'll test it out! Thanks for doing all this work recently! |
Currently Conjuror runs as just as a one time command with args. In order to implement #3 an interactive CLI is absolutely required!
The text was updated successfully, but these errors were encountered: