mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 04:53:01 +02:00
This commit changes the JunOS look of the CLI to something more akin to a standard shell. To achieve this a %w format specifier to display the path components is added to both klish and klish-plugin-sysrepo. Before: admin@infix-12-34-56:exec> configure [edit] admin@infix-12-34-56:configure> ediit interfaces interface eth0 [edit interfaces interface eth0] admin@infix-12-34-56:configure> leave admin@infix-12-34-56:exec> After: admin@infix-12-34-56:/> configure admin@infix-12-34-56:/config/> edit interfaces interface eth0 admin@infix-12-34-56:/config/interfaces/interface/eth0/> leave admin@infix-12-34-56:/> leave However, due to unforseen problems with the naming of VIEWs in klish, the admin-exec level "path" is hard-coded to "/" for now. Future imporovement: fold in calling prompt@klish from srp_prompt, and figure out why the "main" VIEW cannot be changed to "exec" without klish just bailing out starting up. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>