eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
18 stars 5 forks source link

Feat: raw info #79

Closed line-o closed 1 year ago

line-o commented 1 year ago

Add --raw option to the info command.

xst info --raw 

will output something along the lines of

{
  "db": {
    "name": "eXist",
    "version": "6.2.0-SNAPSHOT",
    "git": "ac2c7e17867013bb9aac76f3413ee837f540550b"
  },
  "java": {
    "vendor": "Azul Systems, Inc.",
    "version": "1.8.0_362"
  },
  "os": {
    "name": "Mac OS X",
    "version": "12.6.2",
    "arch": "aarch64"
  }
}
line-o commented 1 year ago

The ability to receive raw JSON data will open up a host of new use-cases. To give you an example:

❯ xst info --raw | jq .db.version
"6.2.0-SNAPSHOT"
joewiz commented 1 year ago

LGTM! (Even if I can't always adjust my system to be able to properly test xst PRs, I'll aim to read them and offer feedback.)

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: