Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor old commands: getu, getslot, hc #445

Closed
helderbetiol opened this issue Apr 24, 2024 · 2 comments · Fixed by #498
Closed

Refactor old commands: getu, getslot, hc #445

helderbetiol opened this issue Apr 24, 2024 · 2 comments · Fixed by #498
Assignees

Comments

@helderbetiol
Copy link
Collaborator

Some old commands are not in the documentation and are not working properly. We should decide to fix them or to remove them if they are not useful. Here are the ones identified so far:

  • getu
  • getslot
  • hc
@hchybz
Copy link
Member

hchybz commented Apr 24, 2024

getu could be suppressed because it could be aliased/ replaced by 'get RACK:HEIGHTas soon as we will have get OBJECT:ATTRIBUTE`

hc : WTF ? can't remember that one

getslot: same as getu or ls with advanced filtering

@Cedrok
Copy link
Member

Cedrok commented Apr 24, 2024

  • getu is getting a device with asked posU (It is actually wrongly implemented and refers to the rack height.. This should be fixed)
  • getslot is getting a device placed at asked slot (since slot is an array, it means one of the slots is the asked one).
    Both can be done with a ls with filters, but I think keeping these simple aliases is a good idea
  • hc displays an object's hierarchy in JSON format, but doesn't work for now. This could be useful if we can output the result in a text file ?

@helderbetiol helderbetiol linked a pull request Jul 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants