]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
knsupdate: adds the 'exit' command as a synonym to the existing 'quit'
authorJan Hák <jan.hak@nic.cz>
Thu, 3 Feb 2022 10:14:47 +0000 (11:14 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 4 Feb 2022 10:23:59 +0000 (11:23 +0100)
doc/man/knsupdate.1in
doc/man_knsupdate.rst
src/utils/knsupdate/knsupdate_exec.c

index 7c63a1fbdc296b02db37602f8a6f9cf1004ee7ca..5f0d2c406f56585d1b5b8b1cf12e303e845485e5 100644 (file)
@@ -149,8 +149,8 @@ Displays the last answer from the server.
 \fBdebug\fP
 Enable debugging. This command has the same meaning as the \fB\-d\fP program option.
 .TP
-\fBquit\fP
-Quit the program.
+\fBexit\fP
+End the program.
 .UNINDENT
 .SH NOTES
 .sp
@@ -185,7 +185,7 @@ $ knsupdate
 > show
 > send
 > answer
-> quit
+> exit
 .ft P
 .fi
 .UNINDENT
index 20c93ed2bee31a83cb7c96062cdbbd1b720bf5db..d01b0167d347b8a8f863cfbd03f3d5daa8108dd8 100644 (file)
@@ -126,8 +126,8 @@ Commands
 **debug**
   Enable debugging. This command has the same meaning as the **-d** program option.
 
-**quit**
-  Quit the program.
+**exit**
+  End the program.
 
 Notes
 -----
@@ -162,7 +162,7 @@ Examples
      > show
      > send
      > answer
-     > quit
+     > exit
 
 See Also
 --------
index 9ffd882254a8710b9b76655c3bc7100badd6ffa7..ff2ccfc4d41f5338ea2643da1fb72acb68a47f97 100644 (file)
@@ -52,7 +52,7 @@ int cmd_nxrrset(const char *lp, knsupdate_params_t *params);
 int cmd_oldgsstsig(const char* lp, knsupdate_params_t *params);
 int cmd_origin(const char* lp, knsupdate_params_t *params);
 int cmd_prereq(const char* lp, knsupdate_params_t *params);
-int cmd_quit(const char* lp, knsupdate_params_t *params);
+int cmd_exit(const char* lp, knsupdate_params_t *params);
 int cmd_realm(const char* lp, knsupdate_params_t *params);
 int cmd_send(const char* lp, knsupdate_params_t *params);
 int cmd_server(const char* lp, knsupdate_params_t *params);
@@ -74,6 +74,7 @@ const char* knsupdate_cmd_array[] = {
        "\x5" "debug",
        "\x3" "del",
        "\x6" "delete",
+       "\x4" "exit",
        "\x7" "gsstsig",
        "\x3" "key",           /* {[alg:]name} {secret} */
        "\x5" "local",         /* {address} [port] */
@@ -102,6 +103,7 @@ cmd_handle_f cmd_handle[] = {
        cmd_debug,
        cmd_del,
        cmd_del,         /* delete/del synonyms */
+       cmd_exit,
        cmd_gsstsig,
        cmd_key,
        cmd_local,
@@ -110,7 +112,7 @@ cmd_handle_f cmd_handle[] = {
        cmd_oldgsstsig,
        cmd_origin,
        cmd_prereq,
-       cmd_quit,
+       cmd_exit,        /* exit/quit synonyms */
        cmd_realm,
        cmd_send,
        cmd_server,
@@ -789,7 +791,7 @@ int cmd_prereq(const char* lp, knsupdate_params_t *params)
        return ret;
 }
 
-int cmd_quit(const char* lp, knsupdate_params_t *params)
+int cmd_exit(const char* lp, knsupdate_params_t *params)
 {
        DBG("%s: lp='%s'\n", __func__, lp);