Skip to content

Feature request: zef config subcommands for debugging #519

@dontlaugh

Description

@dontlaugh

I'm looking into running Blin, and it relies on paring --help to find Zef's JSON config.

https://github.com/Raku/Blin/blob/253df4c042a1fb8cd0fd92ccedf9ce3fb9bcca70/lib/Blin/Tester/Zef.rakumod#L26-L27

It's understandable that parsing is required, since the automatic config paths seem volatile. Here's mine, for instance

CONFIGURATION /home/coleman/.raku/resources/2761BB503396E2B6CC3A6AC77C63CC0B8F2A7233.json

I propose a new subcommand namespace, config (or maybe zef debug could work), that simply evaluates/merges config sources, and prints them to stdout.

Blin's use case could then be accomplished with something like

zef config show --format=json | jq '.Repository[][].options.mirrors'

Prior art: kubectl config view, lxc config show, and more.

This is also an alternative to changing the bemavior of --help per #477

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions