DataFed icon indicating copy to clipboard operation
DataFed copied to clipboard

terse or concise mode of output for CLI

Open ssomnath opened this issue 5 years ago • 2 comments

Since bash is either challenging or ugly to do complex parsing and decision making, certain CLI commands should optionally be able to return only the most crucial piece(s) of information that can easily be handled in bash. For example data create should return just the ID of the record if one turned on the concise flag.

ssomnath avatar Jan 04 '21 17:01 ssomnath

I don't know how I feel about this. I think what might be preferable is to return a JSON object that can be parsed using the Linux jq command. That way if you have mastery of that one command you should be able to do most things.

JoshuaSBrown avatar Dec 27 '22 18:12 JoshuaSBrown

We should seek the advice of potential users on issues like this. I would prefer JSON, but other users may prefer simple bash scripting where json parsing would be complex. I think it would be best to support multiple modes (JSON output is already available)

dvstans avatar Jan 26 '23 15:01 dvstans