Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: get-record #2

Closed
tiborsimko opened this issue Aug 13, 2019 · 0 comments
Closed

cli: get-record #2

tiborsimko opened this issue Aug 13, 2019 · 0 comments
Assignees

Comments

@tiborsimko
Copy link
Member

Goal: Implement get-record CLI function to fetch some wanted record metadata.

Inputs: --recid or --doi ot --title (useful for CMS datasets). One of them should be required.

Outputs: Full JSON of the bibliographic record.

Optionally, if some CLI switch is used, output only that JSON subtree.

Examples:

$ cernopendata-client get-record --recid 14
$ cernopendata-client get-record --doi 10.7483/OPENDATA.ATLAS.AHKR.A3TA
$ cernopendata-client get-record --recid 14 --output-fields title,date_created
$ cernopendata-client get-record --tile '/Mu/Run2010B-v1/RAW' --output-fields recid

Exit status: 0 if OK, 1 if more then one record was matched. (Should not happen.)

okraskaj added a commit to okraskaj/cernopendata-client that referenced this issue Aug 22, 2019
* Closes cernopendata#2

* refactor some code
okraskaj added a commit to okraskaj/cernopendata-client that referenced this issue Aug 22, 2019
* Addresses cernopendata#1

* add docs for get-record command (Addresses cernopendata#2)

Signed-off-by: Jan Okraska <jan.okraska@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants