Skip to content

[BUG] [v0.0.7] Cortex CLI: cortex config get does not resolve nested / dotted keys #46835

Description

@brandon-mcpherson

Project

cortex

Description

config get uses a single config.get(&args.key) on the document root.
Values under [model] etc. are not reachable as model.default.

src/cortex-cli/src/cli/handlers.rsConfigSubcommand::Get.

Error Message

`Key 'model.default' not found in configuration` (when nested table exists).

Debug Logs

N/A

System Information

Cortex CLI v0.0.7

Screenshots

Image

Steps to Reproduce

  1. Ensure ~/.cortex/config.toml has [model] with default = "…".
  2. Run cortex config get model.default.

Expected Behavior

Return nested value or document that only flat keys work.

Actual Behavior

Not found.

Additional Context

src/cortex-cli/src/cli/handlers.rsConfigSubcommand::Get.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions