-
Notifications
You must be signed in to change notification settings - Fork 37
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
Get the expanded string of entire command executed even if entered string is partial #65
Comments
I am not sure. If you inspect the cvv argument, you see the following:
The first argument is the string as entered by the user. Since the user entered "s", that is returned. One can also construct a string from the argv[1]..argv[3] that corresponds to the string you need. |
Added a replacement of the cvv[0] cmd parameter from the original string to the expanded string. |
* See cligen_tutorial Section 6.1 * Moved cv_exclude_keys() to cligen_exclude_keys_set() and created cvec_exclude_keys() * New: cligen_expand_first_get/set() and cvec_expand_first() * Merged the use of cvv and cvvall parameters into a single cvv parameter in match_pattern code * Solved [Get the expanded string of entire command executed even if entered string is partial](#65)
There is now a solution to this issue. |
To clarify, to test it, you need to initialize it properly, such as call cligen_expand_first_set(cli_cligen(h), 1) at some point in main() in apps/cli/cli_main.c and recompile. No specific config option is added yet. |
Issue has been fixed. |
cv_string_get(cvec_i(cvv, 0)); this method returns "show list1 s" instead of "show list1 string1" in the above case
Should be able to retrieve the entire string
The text was updated successfully, but these errors were encountered: