hedgedoc / cli

A tiny CLI for HedgeDoc
GNU Affero General Public License v3.0
153 stars 37 forks source link

Added getting metadata from a note id #52

Closed darkdecoy closed 1 year ago

darkdecoy commented 1 year ago

Added getting metadata from a note id

pirate commented 1 year ago

This is a good addition, thanks!

Out of curiosity why filter the metadata with jq? I think it makes more sense to return all the json that the endpoint returns and let the user pipe it into jq after if they need to filter it.

darkdecoy commented 1 year ago

I used it for more formatting than actually filtering as it allowed to return the metadata in a bash array rather than json which found to more useful for and easier to process in the script that I was writing.

darkdecoy commented 1 year ago

An option to return it in json instead could be added like history command

ErikMichelson commented 1 year ago

Please consider adding the syntax to the usage/help information (which is displayed when calling the script without further arguments)