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

impl topaz config info get #379

Merged
merged 2 commits into from
May 13, 2024
Merged

impl topaz config info get #379

merged 2 commits into from
May 13, 2024

Conversation

gertd
Copy link
Member

@gertd gertd commented May 11, 2024

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
Copy link

Pull Request Test Coverage Report for Build 9065763692

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 22.873%

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

💛 - Coveralls

@gertd gertd merged commit 1a4a6b1 into main May 13, 2024
5 checks passed
@gertd gertd deleted the config-info-get branch May 13, 2024 23:54
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

Successfully merging this pull request may close these issues.

None yet

3 participants