Skip to content
This repository was archived by the owner on May 20, 2019. It is now read-only.
This repository was archived by the owner on May 20, 2019. It is now read-only.

init / create command #4

Closed
Closed

Description

@rufuspollock

As a User I want to create a datapackage.json

  • I want sensible defaults and assistance
    • generate defaults - look stuff up on disk etc
    • prompt based on defaults etc
  • I want data files automatically analysed
  • (?) I want data files automatically discovered and added (scan / globbing https://npmjs.org/package/glob)
  • I want to be able to easily update later
  • I want good help as to what these fields mean
  • I want to be able to generate from data files as urls

Interaction

Would be nice to have quite nice abstracted interaction / generation that would work both for command line and e.g. web. Would also be nice for interaction to be conditional on previous actions - e.g. prompting for filepath(s), urls of data files to add.

Here's a think-through of case for adding a data file from a url

  • ask you for a url
  • analyse the url
  • prompt you to ocnfirm analysis
  • get response
  • update datapackage.json
  • prompt again ...

Implementation

Possibly reuse https://npmjs.org/package/init-package-json as per https://github.com/maxogden/datapackage-json

Activity

  1. added 2 commits that reference this issue on Nov 24, 2013
  2. rufuspollock commented on Dec 26, 2013

    @rufuspollock
    ContributorAuthor

    @sballesteros would it be ok if i do a bit more here?

  3. rufuspollock commented on Dec 26, 2013

    @rufuspollock
    ContributorAuthor

    @sballesteros just saw your comment on #7 - will hold off here (what I was about to do was pull stuff in from datapackage.js)

  4. rufuspollock commented on Dec 28, 2013

    @rufuspollock
    ContributorAuthor

    @sballesteros just updated description with notes from other day

  5. sballesteros commented on Dec 28, 2013

    @sballesteros
    Contributor

    @rgrp great. I have a first working version of the init command on dpm2 if you want to check. Planning to merge and close #9 tomorrow.

  6. rufuspollock commented on Jan 1, 2014

    @rufuspollock
    ContributorAuthor

    We now have a working init command but may need some refactoring if it is to support our use case. Agreed reassignment of issue to @rgrp with @sballesteros.

  7. added 2 commits that reference this issue on Jan 18, 2014
  8. rufuspollock commented on May 17, 2014

    @rufuspollock
    ContributorAuthor

    FIXED. No great interactivity at the moment but pretty passable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions