Skip to content

Improve template logic to find subcommands#2117

Merged
travisbeckham merged 2 commits into
mainfrom
travis/cli-subcommands
May 15, 2026
Merged

Improve template logic to find subcommands#2117
travisbeckham merged 2 commits into
mainfrom
travis/cli-subcommands

Conversation

@travisbeckham
Copy link
Copy Markdown
Collaborator

@travisbeckham travisbeckham commented May 14, 2026

On the current site, to find the subcommands for a certain command we loop through all of the commands looking for a certain prefix.

With this PR, the logic has been optimized to find these subcommands using the like operator.

There should not be any visible changes to the site:
https://linkerd.io/docs/reference/cli/multicluster/#subcommands
https://deploy-preview-2117--linkerdio.netlify.app/docs/reference/cli/multicluster/#subcommands

Signed-off-by: Travis Beckham <travis@buoyant.io>
@travisbeckham travisbeckham requested a review from kflynn May 14, 2026 14:42
Copy link
Copy Markdown
Member

@kflynn kflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🙂

@travisbeckham travisbeckham merged commit a2b6126 into main May 15, 2026
7 checks passed
@travisbeckham travisbeckham deleted the travis/cli-subcommands branch May 15, 2026 16:53
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.

2 participants