aserto-dev / topaz

Cloud-native authorization for modern applications and APIs
https://www.topaz.sh
Apache License 2.0
1.08k stars 25 forks source link

impl topaz config info get #379

Closed gertd closed 4 months ago

gertd commented 4 months ago

This PR adds the ability to extract values from the info result set

Extract config object out of info result set

topaz config info config
{
  "topaz_certs_dir": "/Users/gertd/.local/share/topaz/certs",
  "topaz_cfg_dir": "/Users/gertd/.config/topaz/cfg",
  "topaz_db_dir": "/Users/gertd/.local/share/topaz/db",
  "topaz_dir": "/Users/gertd/.config/topaz"
}

Extract topaz_certs_dir value out of config sub-object

 topaz config info config.topaz_certs_dir
"/Users/gertd/.local/share/topaz/certs"

Extract topaz_certs_dir value out of config sub-object with --raw | -r option to remove quotes from string.

topaz config info config.topaz_certs_dir -r
/Users/gertd/.local/share/topaz/certs
coveralls commented 4 months ago

Pull Request Test Coverage Report for Build 9065763692

Details


Totals Coverage Status
Change from base Build 9006413483: 0.0%
Covered Lines: 1132
Relevant Lines: 4949

💛 - Coveralls