Skip to content

fix(cli): add compact exec alias#351

Open
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-compact-run-exec-alias
Open

fix(cli): add compact exec alias#351
OnlyYu1996 wants to merge 1 commit into
CortexLM:mainfrom
OnlyYu1996:fix-compact-run-exec-alias

Conversation

@OnlyYu1996
Copy link
Copy Markdown

Summary

  • add exec as a visible alias for cortex compact run
  • cover the alias with a clap parsing regression test
  • fix the stale
    ead_file_with_encoding test import so the focused CLI test target builds cleanly

Bounty issue: PlatformNetwork/bounty-challenge#53075

Validation

  • cargo +stable fmt --package cortex-cli --check
  • cargo +stable test --package cortex-cli compact_cmd::tests::test_compact_run_exec_alias -- --nocapture
  • cargo +stable check --package cortex-cli --lib
  • cargo +stable build --package cortex-cli --bin Cortex
  • git diff --check
  • arget/debug/Cortex.exe --color never compact --help shows
    un ... [aliases: exec]
  • arget/debug/Cortex.exe --color never compact exec --dry-run reaches dry-run output

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.

1 participant