Skip to content

Detect workspace JSON config#391

Open
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:workspace-show-config-json
Open

Detect workspace JSON config#391
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:workspace-show-config-json

Conversation

@GreyforgeLabs
Copy link
Copy Markdown

Summary

  • Teach workspace show to detect .cortex/config.json when .cortex/config.toml is absent.
  • Keep TOML as the preferred workspace config path, while parsing JSON settings when JSON is the discovered file.
  • Add a CLI regression test for workspace show --json with only .cortex/config.json.

Fixes PlatformNetwork/bounty-challenge#51499.

Validation

  • cargo test -p cortex-cli --test workspace_show --no-default-features --features cortex-tui -- --nocapture
  • cargo check -p cortex-cli --no-default-features --features cortex-tui
  • cargo fmt --package cortex-cli --check
  • git diff --check

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

[BUG] [v0.0.7] cortex workspace show ignores .cortex/config.json and reports no config present

1 participant