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

feat: redesign compgen, break changes to completion scripts #56

Merged
merged 5 commits into from
Mar 15, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Mar 14, 2023

Two difference:

  1. --compgen accept two arguments only, one for sript path, one for command line buffer.

argc --compgen ./mycmd1 download => argc --compgen ./mycmd1 'download '

The space in the end is very import. Having space or not having space will generate completely different results. After this PR merged, argc can recognize this difference.

  1. Candidates are separated by \n, not by

Two difference:

1. `--compgen` accept two arguments only, one for sript path, one for command line buffer.

`argc --compgen ./mycmd1 download` => `argc --compgen ./mycmd1 'download '`

The space in the end is very import. Having space or not having space will generate completely different results.
After this PR merged, argc can recognize this difference.

2. Candidates are separated by `\n`, not by ` `
@sigoden sigoden merged commit d3ac559 into main Mar 15, 2023
@sigoden sigoden deleted the feat-redesign-compgen branch March 15, 2023 02:30
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.

1 participant