Skip to content

Conversation

@pipinstalled
Copy link

  • Added support for positional and additional aliases in the command decorator.
  • Updated format_commands to display command names along with their visible aliases.
  • Improved command listing to maintain original order and avoid duplicates.
  • Enhanced command info structure to include aliases and hidden aliases.

This improves the usability and clarity of command help output.

pipinstalled and others added 4 commits November 23, 2025 22:22
- Added support for positional and additional aliases in the command decorator.
- Updated `format_commands` to display command names along with their visible aliases.
- Improved command listing to maintain original order and avoid duplicates.
- Enhanced command info structure to include aliases and hidden aliases.

This improves the usability and clarity of command help output.
…r into feature/CommandAliases

fix some type errors in github actions
@pipinstalled pipinstalled changed the title ✨ Enhance command alias handling and display in Typer issue #1242 ✨ Enhance command alias handling and display in Typer issue #1242 #feature Nov 23, 2025
@pipinstalled pipinstalled changed the title ✨ Enhance command alias handling and display in Typer issue #1242 #feature ✨ Enhance command alias handling and display in Typer issue #1242 Nov 23, 2025
@pipinstalled pipinstalled marked this pull request as draft November 23, 2025 19:15
@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

@pipinstalled pipinstalled marked this pull request as ready for review November 24, 2025 09:45
@pipinstalled pipinstalled changed the title ✨ Enhance command alias handling and display in Typer issue #1242 ✨ Enhance command alias handling and display in Typer #1242 Nov 24, 2025
@svlandeg svlandeg linked an issue Nov 24, 2025 that may be closed by this pull request
@svlandeg svlandeg added the feature New feature, enhancement or request label Nov 24, 2025
@svlandeg svlandeg changed the title ✨ Enhance command alias handling and display in Typer #1242 ✨ Enhance command alias handling and display Nov 24, 2025
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

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

@pipinstalled: you can go ahead and set add # pragma: no cover to the pass statements in the tests, otherwise the coverage check will keep failing.

@svlandeg svlandeg marked this pull request as draft November 25, 2025 15:22
@pipinstalled
Copy link
Author

pipinstalled commented Nov 25, 2025

@pipinstalled: you can go ahead and set add # pragma: no cover to the pass statements in the tests, otherwise the coverage check will keep failing.

@svlandeg I added # pragma but still coverage failed

@svlandeg
Copy link
Member

@pipinstalled: you can go ahead and set add # pragma: no cover to the pass statements in the tests, otherwise the coverage check will keep failing.

@svlandeg I added # pragma but still coverage failed

You'll have to look into the specifics of the coverage report. What this typically means is that there's a code path that is untested, so you'd have to implement more tests to cover it.

@pipinstalled
Copy link
Author

@svlandeg Thanks for your help, fixed with adding new tests.

@pipinstalled pipinstalled marked this pull request as ready for review November 26, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature, enhancement or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for command and subcommand aliases

2 participants