[PR #2695] feat: add --completion flag #2562

Open
opened 2026-03-01 21:55:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/2695
Author: @PeterCardenas
Created: 3/17/2025
Status: 🔄 Open

Base: masterHead: add-shell-completion


📝 Commits (3)

  • 040dce0 chore: allow prefixing unused parameters with underscore
  • d48f7c7 feat: add --completion flag
  • b407c55 fix: disallow files as completion for act

📊 Changes

2 files changed (+38 additions, -0 deletions)

View changed files

📝 .golangci.yml (+5 -0)
📝 cmd/root.go (+33 -0)

📄 Description

adds a --completion flag to generate shell completion scripts builtin to
cobra. this includes completion for the --completion flag itself.

also allows for unused variables to be prefixed with an underscore instead of only allowed to be _ and disallows files as completion

closes: #2251


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/2695 **Author:** [@PeterCardenas](https://github.com/PeterCardenas) **Created:** 3/17/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `add-shell-completion` --- ### 📝 Commits (3) - [`040dce0`](https://github.com/nektos/act/commit/040dce04878fdb761e758f3f8badee7936e6be53) chore: allow prefixing unused parameters with underscore - [`d48f7c7`](https://github.com/nektos/act/commit/d48f7c7d11262468addeea2f553fa299b1c5f0e8) feat: add --completion flag - [`b407c55`](https://github.com/nektos/act/commit/b407c55e0e9fb42fba495e4fbbaa75e04df59203) fix: disallow files as completion for act ### 📊 Changes **2 files changed** (+38 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.golangci.yml` (+5 -0) 📝 `cmd/root.go` (+33 -0) </details> ### 📄 Description adds a --completion flag to generate shell completion scripts builtin to cobra. this includes completion for the --completion flag itself. also allows for unused variables to be prefixed with an underscore instead of _only_ allowed to be `_` and disallows files as completion closes: #2251 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#2562
No description provided.