Skip to content

kubectl suggestion should also include aliases #1795

@soltysh

Description

@soltysh

What would you like to be added:
This is somewhat related to #1740 issue, but this time it covers the suggestions.

I have a runx alias defined as follows:

- name: runx
  command: run
  options:
  - default: nginx
    name: image
  appendArgs:
  - --
  - custom-arg1

when trying to run, I've made a typo and tried to run kubectl runc:

$ kubectl runc
error: unknown command "runc" for "kubectl"

Did you mean this?
	run

As presented above, the suggestion ONLY considered the built-in command, would it be possible to expand the suggestions with aliases?

/cc @ardaguclu @rxinui

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions