Skip to content

Fix plugin enable verbose output#347

Open
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-plugin-enable-verbose-output
Open

Fix plugin enable verbose output#347
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-plugin-enable-verbose-output

Conversation

@OnlyYu1996
Copy link
Copy Markdown

Fixes PlatformNetwork/bounty-challenge#53098.

Summary

  • pass the global --verbose flag into plugin command dispatch
  • add extra diagnostic output for plugin enable in verbose mode: plugin directory, manifest path, previous enabled state, and current enabled state
  • add regression coverage for global verbose parsing and verbose enable output
  • update stale agent command test import so current cortex-cli tests build

Validation

  • cargo +stable fmt --package cortex-cli --check
  • cargo +stable test --package cortex-cli plugin_cmd::tests::test_plugin_enable_verbose_output_adds_diagnostics -- --nocapture
  • cargo +stable test --package cortex-cli cli::args::tests::test_cli_global_verbose_with_plugin_enable -- --nocapture
  • cargo +stable check --package cortex-cli --lib
  • cargo +stable build --package cortex-cli --bin Cortex
  • 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 plugin enable --verbose produces identical output to the default run

1 participant