kubernetes / kubernetes/kubectl

kubectl suggestion should also include aliases

Open
#1,795 5 comments 0 reactions 2 assignees Claimed by @Chaudhary-Harshit View on GitHub
kind/feature priority/backlog triage/accepted
Dominant language
Go
Stars
3.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

**What would you like to be added**:
This is somewhat related to https://github.com/kubernetes/kubectl/issues/1740 issue, but this time it covers the suggestions.

I have a `runx` alias defined as follows:
```yaml
- 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.