-
Notifications
You must be signed in to change notification settings - Fork 6
Does data need to have a datapackage.json? If yes, infer one. #22
Comments
Above I linked to infer in Python. Here is the same in JavaScript. |
@pwalsh |
Ok. It feels a bit arbitrary, but good to know 👍 |
@pwalsh what do you think is the expected behaviour. There are a few options when we do
|
Depends: do we definitely intend to only push files referenced in a datapackage.json? Or, files found at location? |
@pwalsh we want people to be able to push files really easily. The question here is not whether we allow them to push files but what is the UX of the CLI. Consider git: Doing
You then then need to do:
Whilst git is maybe not the best example of a great cli experience 😉 it illustrates that it has the user perform several steps rather than trying to do too much magic in one. Similarly, here. We could have My instinct, having thought about it is that this latter, less magical, approach is better but i'm keen to get your (and others) views. |
That is fine, and I agree on less magic, but it means that we must educate the user as to what a Data Package is, i.e.: Data Package is a concept that users must grok in order to push data. |
@pwalsh good point. They only need to grok if they don't push a single file but want to push multiple files. |
We extended the error message and it now suggest to:
Related issue #63 Closing this issue in an advance as DUPLICATE of #63 |
Description
I'm a first time user of the current CLI. After login, I want to just push something.
I'm confused because the CLI tells me the following about
data push
:I could be a user who does not know what
datapackage.json
is.As someone involved in the development of our Frictionless Data software, I know we have an infer method for Data Packages, so I wonder why we are not using it.
The text was updated successfully, but these errors were encountered: