Skip to content

refactor: fix subcommand type mapping and update git example#557

Open
yutubeboss575-create wants to merge 1 commit intozio:masterfrom
yutubeboss575-create:master
Open

refactor: fix subcommand type mapping and update git example#557
yutubeboss575-create wants to merge 1 commit intozio:masterfrom
yutubeboss575-create:master

Conversation

@yutubeboss575-create
Copy link
Copy Markdown

This PR fixes the type mismatch in subcommands mapping within Command.scala. By ensuring the subcommand type is correctly handled, we no longer need manual .map(_._2) workarounds in the examples.

Changes:

Refactored subcommands method in Command.scala for better type inference.

Updated GitExample.scala to reflect these improvements and remove redundant mapping logic.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 25, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants