caltechlibrary / dataset

dataset is a command line tool, Go package, shared library and Python package for working with JSON objects as collections
https://caltechlibrary.github.io/dataset
Other
23 stars 4 forks source link

codemeta display in cli not implemented #116

Closed rsdoiel closed 2 years ago

rsdoiel commented 2 years ago

Looks like I forgot to hook the display of the codemeta content with the cli. Fill in "doCodemeta()" func.

It would be helpful to have an "info" version that could be used to display both codemeta content in plain text along with information about the repositories' configuration (e.g. is it using Pairtree storage or SQL storage, is versioning turned on or off).

rsdoiel commented 2 years ago

I could base this off the output rendered by codemeta-md.tmpl I use with Pandoc. It can easily be done without Pandoc by iterating over the object structure and pulling out the elements and formatting via fmt.Fprintf().

rsdoiel commented 2 years ago

Codemeta is displayed as is in JSON. That is "good enough" for now v2.0.0.