Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added switch and value flag suggestions #16

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

FixedDev
Copy link
Owner

As suggested by #15, we added tab completion for switch and value flags only when the next argument starts with a "-".
To allow this we needed custom treatment on the SequentialCommandParts for the ValueFlagPart and SwitchPart.

More testing is needed before merging this into the main branch, since only basic testing was done before creating the pull request with the changes

@FixedDev FixedDev added enhancement New feature or request help wanted Extra attention is needed labels Aug 24, 2021
@FixedDev FixedDev self-assigned this Aug 24, 2021
Copy link
Contributor

@OcZi OcZi left a comment

Choose a reason for hiding this comment

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

a

If we use "-g" directly then the only suggestion available is nothing, so only use "-"
@FixedDev FixedDev linked an issue Sep 11, 2021 that may be closed by this pull request
@FixedDev FixedDev removed the request for review from pixeldev September 11, 2021 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tab-completion for Flags and Switches
4 participants