Skip to content

Move the cli.py if/else logic table to a dispatch table. - #57

Merged
codepiyusss merged 1 commit into
codepiyusss:mainfrom
gtref:main
Oct 21, 2026
Merged

codepiyusss merged 1 commit into
codepiyusss:mainfrom
gtref:main

Conversation

@gtref

@gtref gtref commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This pull request moves the command logic from an if/else chain to a dispatch table

Related issue

Closes #37

Checklist

  • I commented on the issue first and was assigned
  • I removed the xfail marker (if fixing a bug)
  • I added or updated tests
  • pytest passes locally
  • This PR only addresses one issue

Signed-off-by: G-type <162748908+gtref@users.noreply.github.com>
@codepiyusss
codepiyusss marked this pull request as ready for review October 21, 2026 06:42
@codepiyusss
codepiyusss merged commit 02fb316 into codepiyusss:main Oct 21, 2026
3 checks passed
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.

Refactor: replace if/elif chain in cli.main with a dispatch table

2 participants