mirror of https://gerrit.osmocom.org/libosmocore
Vadim Yanitskiy
72b90883f9
Some VTY commands are intentionally hidden, e.g. because they might by relatively dangerous if used in production operation. We equip such commands with a special attribute - CMD_ATTR_HIDDEN. The problem is that neiter they appear in the XML VTY reference, nor in the online VTY help, so it's a bit tricky to invoke them. This change introduces so-called 'expert' mode, in which hidden (but not deprecated) commands are getting visible. In the (telnet) VTY session, this mode can be activated by passing an additional argument to well-known 'enable' command: OsmoApp> enable ? [expert-mode] Enable the expert mode (show hidden commands) OsmoApp> enable expert-mode OsmoApp# so then hidden commands will appear together with all the other commands. They will be marked with a special '^' flag: OsmoApp# list with-flags ^ ... foo-hidden [expert-mode] . ... foo-regular-one ! ... foo-immediate ^ u.. app-hidden-unbelievable For the XML reference generation, additional API needs to be introduced. This will be implemented in subsequent patches. Change-Id: Ie69c2a19b22fb31d7bd7f6412f0aeac86ea5048f Related: SYS#4910 |
||
---|---|---|
.. | ||
fail_cmd_ret_warning.cfg | ||
fail_not_de-indented.cfg | ||
fail_tabs_and_spaces.cfg | ||
fail_too_much_indent.cfg | ||
ok.cfg | ||
ok_deprecated_logging.cfg | ||
ok_empty_parent.cfg | ||
ok_ignore_blank.cfg | ||
ok_ignore_comment.cfg | ||
ok_indented_root.cfg | ||
ok_more_spaces.cfg | ||
ok_tabs.cfg | ||
ok_tabs_and_spaces.cfg | ||
vty_test.c | ||
vty_test.err | ||
vty_test.ok | ||
vty_transcript_test.c | ||
vty_transcript_test.vty |