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

Auto-completion should suggest target names #7

Open
fbecart opened this issue May 14, 2020 · 0 comments
Open

Auto-completion should suggest target names #7

fbecart opened this issue May 14, 2020 · 0 comments
Labels
feature New feature or request

Comments

@fbecart
Copy link
Owner

fbecart commented May 14, 2020

zinoma already provides auto-completion for the static flags and options of the command line.

However, available target names depend on the project being built. It would be very helpful if the auto-completion could help on the targets of the current project. This would be either the project of the current directory, or of the project specified by the option -p, --project <PROJECT_DIR>.

The best would be to have this solved directly through clap. The feature doesn't exist yet, and the issue can be tracked at clap-rs/clap#1910

Alternatively, we could add a new flag: --complete-targets. If this flag is provided, zinoma would return a list of the available targets for the selected project. This command could be called from our completion scripts. Unfortunately, this solution would probably mean writing our completion scripts by hand (as opposed to having them generated by clap, which is currently the case).

@fbecart fbecart added the feature New feature or request label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant