You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-processing is wrapped up in prompting and is sort of hacky
loading and writing of datapackage.json is not separate from the creation of datapackage.json
Proposal
Steps we need to perform (not necessarily in order)
Generate defaults (possibly given a directory)
Definition of things to ask (interactive)
Use current values (defaults or load of current dp.json)
initial values (given directory or some other info)
Output: array of questions [ ... ]
Post-processing (e.g. analyse urls to look at it)
dp.json plus some context (e.g. path to the directory, data files to add ...)
Final confirmation and write of the file (e.g. to disk)
This is probably outside of this library
In more complex scenario would loop steps 2 + 3 (e.g. answer to one item, would result in post-processing (e.g. analysis of data file that could alter what we ask ...)
Note: simplest possible right now would just be to have defaults function (ignore prompting etc etc ...)
Use cases
Create - no datapackage.json exists
Update existing datapackage.json
should we add defaults ??
specifically to add data resources
The text was updated successfully, but these errors were encountered:
* new defaults methods to generate default values
* use these from init method
* prompt.js is now obsolete and removed (and also dependency on init-package-json)
Current issues:
Proposal
Steps we need to perform (not necessarily in order)
In more complex scenario would loop steps 2 + 3 (e.g. answer to one item, would result in post-processing (e.g. analysis of data file that could alter what we ask ...)
Note: simplest possible right now would just be to have defaults function (ignore prompting etc etc ...)
Use cases
The text was updated successfully, but these errors were encountered: