Skip to content

fix(completion): offer --json flag for ls, agent ls, and secret ls - #226

Open
Voyagerroc-Lab wants to merge 1 commit into
brig-sh:mainfrom
Voyagerroc-Lab:fix/completion-ls-json
Open

Voyagerroc-Lab wants to merge 1 commit into
brig-sh:mainfrom
Voyagerroc-Lab:fix/completion-ls-json

Conversation

@Voyagerroc-Lab

Copy link
Copy Markdown

Summary

Fixes #176.

Problem

--json is supported by brig ls, brig agent ls, and brig secret ls, but shell completion did not offer --json for any of these three commands.

Solution

  • Added --json to the allowed flag list for brig ls in cmd/brig/completion.go.
  • Added flags: []string{"--json"} to the agent ls and secret ls subcommand definitions within groups.
  • Added unit test cases to cmd/brig/completion_test.go verifying that completion offers --json for brig ls -, brig agent ls -, and brig secret ls -.

Closes #176.

…loses brig-sh#176)

Signed-off-by: Voyagerroc-Code <325343927+Voyagerroc-Code@users.noreply.github.com>
@asapranidis

Copy link
Copy Markdown
Member

Thanks @Voyagerroc-Lab for contributing and taking on this.

Can I ask you to adjust your commit header to be 72 characters with the Fixes as a git trailer at the end, then I am happy to approve this PR

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.

Completion never offers --json on ls, agent ls or secret ls

2 participants