Skip to content

shell completion #2251

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

Open
loynoir opened this issue Mar 16, 2024 · 4 comments · May be fixed by #2695
Open

shell completion #2251

loynoir opened this issue Mar 16, 2024 · 4 comments · May be fixed by #2695
Labels
kind/feature-request New feature or request

Comments

@loynoir
Copy link

loynoir commented Mar 16, 2024

Act version

0.2.60

Feature description

Quote readme from https://github.com/nektos/act

  • Local Task Runner - I love make. However, I also hate repeating myself. With act, you can use the GitHub Actions defined in your .github/workflows/ to replace your Makefile!

make support tab completion, such as targets.

Would be nice to see act support tab completion.

$ act --generate-completions $SHELL
@loynoir loynoir added the kind/feature-request New feature or request label Mar 16, 2024
@reitzig
Copy link

reitzig commented Mar 18, 2024

Not sure how they got around cobra just generating the command, but somehow they managed. 😅

@iloveitaly
Copy link

Created one here:

iloveitaly/zsh-ai-completions@58b1a5a

@PeterCardenas
Copy link

PeterCardenas commented Mar 16, 2025

looks like this is built into cobra, just run act completion <shell>. reference: https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md (the reason it doesn't show up in help is because cobra hides it automatically if there are no other subcommands)

@PeterCardenas PeterCardenas linked a pull request Mar 17, 2025 that will close this issue
@PeterCardenas
Copy link

added a convenience --completion flag above. i welcome any feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants