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(cli): implementing completions #319

Merged
merged 9 commits into from
Apr 16, 2024
Merged

feat(cli): implementing completions #319

merged 9 commits into from
Apr 16, 2024

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Apr 15, 2024

Added functionality to build script (now its src/build_script_.rs because of Bazel) to generate autocompletion scripts.
To generate completions in ~/Downloads/completions using cargo:

COMPLETIONS_OUT_DIR=~/Downloads/completions cargo build --bin dre (--release)

To generate completions using bazel (After this they will be present in bazel-out/k8-opt/bin/rs/cli/build_script.out_dir/completions):

bazel build //rs/cli:dre

Additional notes:

  • Added these scripts to releases. If someone finds them useful they can download them, if not, they can opt out.

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner April 15, 2024 15:18
@NikolaMilosa NikolaMilosa added this pull request to the merge queue Apr 16, 2024
Merged via the queue into main with commit b8bb7e0 Apr 16, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-autocomplete branch April 16, 2024 10:44
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.

3 participants