Skip to content

Conversation

@timbrinded
Copy link
Collaborator

CLI app only has a single command, so make it the default action when opening the app

closes #60

CLI app only has a single command, so make it the default action when opening the app
Copilot AI review requested due to automatic review settings November 3, 2025 12:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the CLI architecture by converting the report command from a separate subcommand to a default callback function, making it the primary entry point for the application.

Key changes:

  • Merged the initialize_context callback with the report command into a single default callback
  • Changed no_args_is_help to False to support running without explicit subcommands
  • Updated documentation to reflect the new simplified CLI usage pattern

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tq_oracle/main.py Merged initialize_context and report into a single callback function that executes by default; moved os import to top level
README.md Updated usage examples to demonstrate the new default command behavior without requiring explicit report subcommand
ARCHITECTURE.md Updated architecture description to reflect the new default command pattern

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timbrinded timbrinded merged commit 9641b26 into master Nov 3, 2025
6 checks passed
@timbrinded timbrinded deleted the fix/default-command branch November 3, 2025 13:02
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.

make report command implicit

2 participants