Skip to content

Write shell completions directly to a file - #375

Merged
jongio merged 1 commit into
mainfrom
idea-completion-output
Jul 27, 2026
Merged

Write shell completions directly to a file#375
jongio merged 1 commit into
mainfrom
idea-completion-output

Conversation

@jongio

@jongio jongio commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Adds --output to grut completion so setup scripts can write completion files without relying on shell redirection.

Changes:

  • Adds --output and -o to the completion command.
  • Creates parent directories before writing the generated script.
  • Keeps stdout behavior unchanged when no output path is set.

Validation:

  • go build ./...
  • go test ./...
  • mage preflight failed on existing lint findings in internal\panels\gitinfo\gitinfo_submodules.go and internal\panels\gitdiff\gitdiff.go.

Closes #372

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e02217cd-ffed-496e-b8ea-848a781cda64
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 25, 2026
@jongio jongio self-assigned this Jul 25, 2026
@jongio
jongio merged commit 888c157 into main Jul 27, 2026
4 checks passed
@jongio
jongio deleted the idea-completion-output branch July 27, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write shell completions directly to a file

1 participant