Skip to content

Commit d1c1e7f

Browse files
committed
cli: add "end" alias to "up", leave this node/subsection
I'm sorry, I'm just so used to this modus from the previous company. The difference to 'exit', which is available on Cisco IOS, is that it on the top-level config context does not exit/abort to admin-exec but instead stops. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent 0c84544 commit d1c1e7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/klish-plugin-infix/xml/infix.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
<COMMAND name="exit" help="Exit">
144144
<ACTION sym="nav">pop</ACTION>
145145
</COMMAND>
146-
<COMMAND name="logout" help="Alias for exit">
146+
<COMMAND name="logout" help="Alias to exit">
147147
<ACTION sym="nav">pop</ACTION>
148148
</COMMAND>
149149

@@ -393,6 +393,10 @@
393393
<ACTION sym="srp_up@sysrepo"/>
394394
</COMMAND>
395395

396+
<COMMAND name="end" help="Alias to up, leave this subsection/node">
397+
<ACTION sym="srp_up@sysrepo"/>
398+
</COMMAND>
399+
396400
<COMMAND name="exit" help="Ascend to parent configuration node, or abort (from top)">
397401
<ACTION sym="srp_up@sysrepo"/>
398402
<ACTION sym="srp_reset@sysrepo" exec_on="fail" update_retcode="false"/>
@@ -420,7 +424,7 @@
420424
<ACTION sym="srp_del@sysrepo"/>
421425
</COMMAND>
422426

423-
<COMMAND name="no" help="Alias for delete">
427+
<COMMAND name="no" help="Alias to delete">
424428
<PARAM name="path" ptype="/PLINE_DEL" max="100"/>
425429
<ACTION sym="srp_del@sysrepo"/>
426430
</COMMAND>

0 commit comments

Comments
 (0)