Bug 1263947
Summary: | [origin_userinterface_542]CLI doesn’t show any suggestion for some commands | ||
---|---|---|---|
Product: | OKD | Reporter: | Wei Sun <wsun> |
Component: | oc | Assignee: | Fabiano Franz <ffranz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wei Sun <wsun> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.x | CC: | aos-bugs, mmccomas, wjiang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-23 21:16:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Wei Sun
2015-09-17 07:17:58 UTC
There's a PR opened for Cobra, waiting for it to get merged so that we can bump it in OpenShift and get this fixed. https://github.com/spf13/cobra/pull/163 Fixed in https://github.com/openshift/origin/pull/4859 Notice that not all ideas listed were implemented. We have to take care to not be too much aggressive in the suggestions. So "back", "rback" and "anot" where not implemented. The rules to suggest a similar command are basically these: 1. Levenshtein with a minimum distance of 2 (case insensitive); 2. Prefix match (so that, for example, we suggest "new-app" and "new-project" when the user tries "oc new"); 3. A few explicit suggestions (for example, suggest "delete" when the user tries "oc remove", suggestions for "build", "builds", "deployment", "image", "app" and a couple others). Checked with devenv-fedora_2430, and the issue has been fixed. |