-
Notifications
You must be signed in to change notification settings - Fork 76
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
Provide an interactive mode #104
Comments
I dont know if necessary to provide interacive mode, maybe just make it simpler This is the total of what I do : with import.sh containing the following: rm -fr csv-dir |
I don't think adding an interactive mode would make discogs-xml2db much easier to use as the people using it should already know how to look up documentation and use the command line. However I would like to make the parameters and documentation as clear as possible. Some possible improvements:
These changes would make the commands pretty simple to understand and document. For example a mysql import would require: # setup, can be automated when seting up the environment
$ git clone https://github.com/philipmat/discogs-xml2db.git
$ cd discogs-xml2db
$ sudo pip3 install -r requirements.txt
$ nano mysql/mysql.conf
$ mysql/exec_sql.sh < mysql/CreateTables.sql
# actual import
$ get_latest_dumps.sh xml-dumps
$ sha256sum -c xml-dumps/discogs_*_CHECKSUM.txt
$ exporter.py --bz2 --apicounts xml-dumps/*.xml.gz csvdir
$ mysql/importcsv.sh /csvdir/*
$ mysql/exec_sql.sh < mysql/AssignPrimaryKeys.sql I was planning on making pull requests for most of these changes but have been pretty busy the last couple of weeks. I should have some time for this come september. |
@berz - thank you for your thoughts. Would you mind opening up an issue for each of those items in your list? It would make it easier to track them. |
Instead of reading through the documentation and learning all the parameters to pass to the program, what if out of the box we provided an interactive run mode.
Then each step could ask the questions it needs to. For example, step 2 could ask:
etc
If "4" is chosen, then all the necessary question could be ask ahead and the steps would execute in sequence without user interaction.
The settings could be saved up locally so that subsequent executions would preserve the choices being made.
The text was updated successfully, but these errors were encountered: