uselagoon / uselagoon/lagoon-cli

Add shell completion

Open
#342 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
28
Forks
14
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

I would love shell completion for all Lagoon CLI commands and arguments.

Describe the solution you'd like

I believe Cobra has basic support for this

lagoon completion zsh > /tmp/lagoon.sh && source /tmp/lagoon.sh

However, this does not list the arguments from what I can tell.

It would also be nice to have documentation about this, perhaps around the installation instructions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Lagoon CLI's Cobra command setup and the existing lagoon completion zsh entry point. Check how command arguments are defined and whether generated completions include them, then update the installation documentation with the supported shell-completion workflow. Done means completion works for all CLI commands and arguments and the setup is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.