Skip to content

Commit

Permalink
cli UPDATE update man page
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Nov 25, 2022
1 parent 29f5ffa commit ab4e86d
Show file tree
Hide file tree
Showing 2 changed files with 836 additions and 297 deletions.
65 changes: 35 additions & 30 deletions cli/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -6744,55 +6744,60 @@ cmd_timed(const char *arg, char **UNUSED(tmp_config_file))
COMMAND commands[] = {
#ifdef NC_ENABLED_SSH
{"auth", cmd_auth, cmd_auth_help, "Manage SSH authentication options"},
{"knownhosts", cmd_knownhosts, cmd_knownhosts_help, "Manage the user knownhosts file"},
#endif
{"cancel-commit", cmd_cancelcommit, cmd_cancelcommit_help, "ietf-netconf <cancel-commit> operation"},
#ifdef NC_ENABLED_TLS
{"cert", cmd_cert, cmd_cert_help, "Manage trusted or your own certificates"},
{"crl", cmd_crl, cmd_crl_help, "Manage Certificate Revocation List directory"},
#endif
{"outputformat", cmd_outputformat, cmd_outputformat_help, "Set the output format of all the data"},
{"searchpath", cmd_searchpath, cmd_searchpath_help, "Set the search path for models"},
{"verb", cmd_verb, cmd_verb_help, "Change verbosity"},
{"version", cmd_version, NULL, "Print Netopeer2 CLI version"},
{"disconnect", cmd_disconnect, NULL, "Disconnect from a NETCONF server"},
{"status", cmd_status, NULL, "Display information about the current NETCONF session"},
{"connect", cmd_connect, cmd_connect_help, "Connect to a NETCONF server"},
{"listen", cmd_listen, cmd_listen_help, "Wait for a Call Home connection from a NETCONF server"},
{"quit", cmd_quit, NULL, "Quit the program"},
{"help", cmd_help, NULL, "Display commands description"},
{"editor", cmd_editor, cmd_editor_help, "Set the text editor for working with XML data"},
{"cancel-commit", cmd_cancelcommit, cmd_cancelcommit_help, "ietf-netconf <cancel-commit> operation"},
{"commit", cmd_commit, cmd_commit_help, "ietf-netconf <commit> operation"},
{"connect", cmd_connect, cmd_connect_help, "Connect to a NETCONF server"},
{"copy-config", cmd_copyconfig, cmd_copyconfig_help, "ietf-netconf <copy-config> operation"},
#ifdef NC_ENABLED_TLS
{"crl", cmd_crl, cmd_crl_help, "Manage Certificate Revocation List directory"},
#endif
{"delete-config", cmd_deleteconfig, cmd_deleteconfig_help, "ietf-netconf <delete-config> operation"},
{"delete-sub", cmd_deletesub, cmd_deletesub_help, "ietf-subscribed-notifications <delete-subscription> operation"},
{"discard-changes", cmd_discardchanges, cmd_discardchanges_help, "ietf-netconf <discard-changes> operation"},
{"disconnect", cmd_disconnect, NULL, "Disconnect from a NETCONF server"},
{"edit-config", cmd_editconfig, cmd_editconfig_help, "ietf-netconf <edit-config> operation"},
{"get", cmd_get, cmd_get_help, "ietf-netconf <get> operation"},
{"get-config", cmd_getconfig, cmd_getconfig_help, "ietf-netconf <get-config> operation"},
{"kill-session", cmd_killsession, cmd_killsession_help, "ietf-netconf <kill-session> operation"},
{"lock", cmd_lock, cmd_lock_help, "ietf-netconf <lock> operation"},
{"unlock", cmd_unlock, cmd_unlock_help, "ietf-netconf <unlock> operation"},
{"validate", cmd_validate, cmd_validate_help, "ietf-netconf <validate> operation"},
{"subscribe", cmd_subscribe, cmd_subscribe_help, "notifications <create-subscription> operation"},
{"get-schema", cmd_getschema, cmd_getschema_help, "ietf-netconf-monitoring <get-schema> operation"},
{"get-data", cmd_getdata, cmd_getdata_help, "ietf-netconf-nmda <get-data> operation"},
{"edit-data", cmd_editdata, cmd_editdata_help, "ietf-netconf-nmda <edit-data> operation"},
{"editor", cmd_editor, cmd_editor_help, "Set the text editor for working with XML data"},
{"establish-push", cmd_establishpush, cmd_establishpush_help,
"ietf-subscribed-notifications <establish-subscription> operation with ietf-yang-push augments"},
{"establish-sub", cmd_establishsub, cmd_establishsub_help,
"ietf-subscribed-notifications <establish-subscription> operation"},
{"modify-sub", cmd_modifysub, cmd_modifysub_help, "ietf-subscribed-notifications <modify-subscription> operation"},
{"delete-sub", cmd_deletesub, cmd_deletesub_help, "ietf-subscribed-notifications <delete-subscription> operation"},
{"exit", cmd_quit, NULL, "Quit the program"},
{"ext-data", cmd_extdata, cmd_extdata_help, "Set path to a data file with libyang ext data"},
{"get", cmd_get, cmd_get_help, "ietf-netconf <get> operation"},
{"get-config", cmd_getconfig, cmd_getconfig_help, "ietf-netconf <get-config> operation"},
{"get-data", cmd_getdata, cmd_getdata_help, "ietf-netconf-nmda <get-data> operation"},
{"get-schema", cmd_getschema, cmd_getschema_help, "ietf-netconf-monitoring <get-schema> operation"},
{"help", cmd_help, NULL, "Display commands description"},
{"kill-session", cmd_killsession, cmd_killsession_help, "ietf-netconf <kill-session> operation"},
{"kill-sub", cmd_killsub, cmd_killsub_help, "ietf-subscribed-notifications <kill-subscription> operation"},
{"establish-push", cmd_establishpush, cmd_establishpush_help,
"ietf-subscribed-notifications <establish-subscription> operation with ietf-yang-push augments"},
#ifdef NC_ENABLED_SSH
{"knownhosts", cmd_knownhosts, cmd_knownhosts_help, "Manage the user knownhosts file"},
#endif
{"listen", cmd_listen, cmd_listen_help, "Wait for a Call Home connection from a NETCONF server"},
{"lock", cmd_lock, cmd_lock_help, "ietf-netconf <lock> operation"},
{"modify-push", cmd_modifypush, cmd_modifypush_help,
"ietf-subscribed-notifications <modify-subscription> operation with ietf-yang-push augments"},
{"modify-sub", cmd_modifysub, cmd_modifysub_help, "ietf-subscribed-notifications <modify-subscription> operation"},
{"outputformat", cmd_outputformat, cmd_outputformat_help, "Set the output format of all the data"},
{"resync-sub", cmd_resyncsub, cmd_resyncsub_help, "ietf-yang-push <resync-subscription> operation"},
{"user-rpc", cmd_userrpc, cmd_userrpc_help, "Send your own content in an RPC envelope"},
{"ext-data", cmd_extdata, cmd_extdata_help, "Set path to a data file with libyang ext data"},
{"searchpath", cmd_searchpath, cmd_searchpath_help, "Set the search path for models"},
{"status", cmd_status, NULL, "Display information about the current NETCONF session"},
{"subscribe", cmd_subscribe, cmd_subscribe_help, "notifications <create-subscription> operation"},
{"timed", cmd_timed, cmd_timed_help, "Time all the commands (that communicate with a server) from issuing an RPC"
" to getting a reply"},
{"unlock", cmd_unlock, cmd_unlock_help, "ietf-netconf <unlock> operation"},
{"user-rpc", cmd_userrpc, cmd_userrpc_help, "Send your own content in an RPC envelope"},
{"validate", cmd_validate, cmd_validate_help, "ietf-netconf <validate> operation"},
{"verb", cmd_verb, cmd_verb_help, "Change verbosity"},
{"version", cmd_version, NULL, "Print Netopeer2 CLI version"},

/* synonyms for previous commands */
{"?", cmd_help, NULL, "Display commands description"},
{"exit", cmd_quit, NULL, "Quit the program"},
{"quit", cmd_quit, NULL, "Quit the program"},
{NULL, NULL, NULL, NULL}
};
Loading

0 comments on commit ab4e86d

Please sign in to comment.