Bug 1379971
Summary: | [RFE]Change the CLI list-labcontrollers to labcontroller-list | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Hui Wang <huiwang> |
Component: | command line | Assignee: | Hui Wang <huiwang> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | develop | CC: | dcallagh, mjia, rjoost |
Target Milestone: | 24.0 | Keywords: | FutureFeature, Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-21 18:50:45 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
Hui Wang
2016-09-28 09:36:20 UTC
We can't remove the old command because that could break someone's scripts. https://beaker-project.org/dev/guide/code-guidelines.html#api-compatibility What we can do is leave the old command as a deprecated alias for the new command. We have done this with some server side commands in the past (log-delete -> beaker-log-delete) although never with bkr subcommands as far as I can remember. (In reply to Dan Callaghan from comment #2) > We can't remove the old command because that could break someone's scripts. > > https://beaker-project.org/dev/guide/code-guidelines.html#api-compatibility > > What we can do is leave the old command as a deprecated alias for the new > command. We have done this with some server side commands in the past > (log-delete -> beaker-log-delete) although never with bkr subcommands as far > as I can remember. I didn't considered the api-compatibility. That a good point. I will try alias. (In reply to Dan Callaghan from comment #2) > We can't remove the old command because that could break someone's scripts. > > https://beaker-project.org/dev/guide/code-guidelines.html#api-compatibility > > What we can do is leave the old command as a deprecated alias for the new > command. We have done this with some server side commands in the past > (log-delete -> beaker-log-delete) although never with bkr subcommands as far > as I can remember. How about the resolution below: I just don't remove the CLI $bkr list-systems, but just hide the CLI in help. The CLI $bkr list-systems is still existed and valid. I just add new CLI bkr systemp-list. Only this New CLI can be shown in help. Sorry, ignore last comment. I just don't remove the CLI $bkr list-labcontrollers, but just hide the CLI in help. The CLI $bkr list-labcontrollers is still existed and valid. I just add new CLI bkr labcontroller-list. Only this New CLI can be shown in help. It's not good to add two identical copies of cli. Just in new cli file add the old command to inherit the new one: class LabController_List(List_LabControllers): pass This bug fix is included in beaker-client-24.0-0.git.143.42e2fdb which is currently available for download here: https://beaker-project.org/nightlies/develop/ Verified this issue. The result is PASS. Version: beaker-client-24.0-0.git.143.42e2fdb [root@dhcp-137-146 Downloads]# bkr labcontroller-list lab-devel-02.rhts.eng.bos.redhat.com lab-devel-03.rhts.eng.bos.redhat.com beaker.rmancy.beakerdevs.lab.eng.bne.redhat.com [root@dhcp-137-146 Downloads]# bkr labcontroller-list --help Usage: bkr labcontroller-list Options: --hub=URL Connect to Beaker server at URL (overrides config file) --username=USERNAME Use USERNAME for password authentication (overrides config file) --password=PASSWORD Use PASSWORD for password authentication (overrides config file) --insecure Skip SSL certificate validity checks --version show program's version number and exit -h, --help show this help message and exit Beaker 24.0 has been released. |