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

Make cmd line use table IDs easier #31

Open
KSchopmeyer opened this issue Jul 11, 2018 · 1 comment
Open

Make cmd line use table IDs easier #31

KSchopmeyer opened this issue Jul 11, 2018 · 1 comment

Comments

@KSchopmeyer
Copy link
Owner

KSchopmeyer commented Jul 11, 2018

Since this is a cmd line tool, generally we make heavy use of ways to select particular entities in the tables. generally this is the ID for the table. This makes it hard for the user since they have to remember integer IDs for particular entries in a table.

Thus: 'smicli targets list'

generates a table of the targets table (id, ip address, creds, port, etc.) However, to modify/get/delete, etc. a particular entry you must remember the id from a previous list. Thus smicli modify 98 --ipaddress 10.2.104.22 modifies the ipaddress of target 98. This is hard to do. We have for some tables the capability to list all of the entries and allow the user to select one. Thus, smicli modify ? --ipaddress 10.2.104.22 would first present a list of the targets with info including (id, product, company, etc.) and the user could then select this entry without having to remember the ID number or abort the whole operation.

Note that we tried doing things like using other fields (company, product, etc.) to derive the id but there are too many duplicates in the tables to allow this to refine to a single id and further, some things like product are actually spelled slightly differently in different targets.

This is all part of making this easier to use and will apply not this and the other command line tools like pywbemcli equally.

@KSchopmeyer
Copy link
Owner Author

This has been largely corrected and in almost all cases we now allow and document the use of ? as a request for a pick-list to be displayed.

However, we have made this more complex because we also use the --interactive option for the position argument which gives the user a choice. Perhaps we should remove that option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant