libAtoms / abcd

1 stars 4 forks source link

show subcommand #49

Closed gabor1 closed 4 years ago

gabor1 commented 5 years ago

So the third major thing I would like to have alongside a "summary" and "download" is a et of examples. There are things for which this is the only sensible way currently to get an idea of what is in the database, e.g. list items like elements, or calculator_parameters etc.

we could do this with a new subcommand, like "show", defaulting to the first 10 as usual, but --all for the full list.

if -p options are given, then the corresponding properties should be just concatenated on a single line per configuration, without any semantics, just spaces separating the values, arrays flattened, but strings in quotes. without the -p options, let's dump the json for the moment until we figure out what to do.

fekad commented 4 years ago

Multiple properties (like abcd show -p cell -p energy) should go into a single line by using a separator (like |). By default (without using --all) the command shows the first ten objects but we should inform the user about the rest of the data. (like the number of all items is ... and ... at the end. )