#1 Add init command

Open
opened 2 months ago by steko · 0 comments
steko commented 2 months ago
Owner

Since creating datapackage.json manually is error-prone and time consuming, it would be very useful to have an init command that can be run in the directory containing the CSV files. Like this:

$ ls
contexts.csv  inferences.csv  observations.csv

$ hmdp init
Harris Matrix Data Package initialization

What is the title of this data package? [default: directory-name]
3 resources found: contexts, inferences, observations
Created datapackage.json in current directory

$ ls
contexts.csv  datapackage.json  inferences.csv  observations.csv

The init command could also be used to create a data package from scratch, either in a new or empty directory, with both the data descriptor and the resource files.

Since creating `datapackage.json` manually is error-prone and time consuming, it would be very useful to have an `init` command that can be run in the directory containing the CSV files. Like this: ```sh $ ls contexts.csv inferences.csv observations.csv $ hmdp init Harris Matrix Data Package initialization What is the title of this data package? [default: directory-name] 3 resources found: contexts, inferences, observations Created datapackage.json in current directory $ ls contexts.csv datapackage.json inferences.csv observations.csv ``` The `init` command could also be used to create a data package from scratch, either in a new or empty directory, with both the data descriptor and the resource files.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.