Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

WIP: Small refactoring#2188

Draft
selim1903 wants to merge1 commit intodev
base:dev
Choose a base branch
Loading
fromuser/sargul/cortex-cli-refactor

Conversation

selim1903
Copy link

@selim1903selim1903 commentedApr 1, 2025
edited
Loading

Describe Your Changes

Cleaned up command structure with proper interfaces
Hey team! This PR cleans up our command architecture to make it more maintainable.
Main idea: keep main.cc super minimal and introduce clean public interfaces with implementations hidden in their own folder structure.

  • Moved all the messy stuff out of main.cc (it's down to like 14 lines now!)
  • Created public headers that define clean interfaces
  • Tucked all the implementation details away using PIMPL
  • Split everything into proper header/source files
  • Added a command registry to organize all our commands
  • Made adapters so we can migrate one command at a time

This gives us a much cleaner structure while keeping everything working with the existing code. Also makes it way easier to test!

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

return CommandStatus::Success;
} catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
return CommandStatus::GeneralError;
Copy link
Author

Choose a reason for hiding this comment

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

TODO: Need to implement these command status

@selim1903selim1903 changed the titleSmall refactoringWIP: Small refactoringApr 1, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@selim1903

[8]ページ先頭

©2009-2025 Movatter.jp