[PATCH 1/6] virsh: Un-document 'virsh echo'

Peter Krempa pkrempa at redhat.com
Thu Aug 12 13:01:31 UTC 2021


Note that it's for internal testing use and remove the manpage entry.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 docs/manpages/virsh.rst | 17 -----------------
 tools/vsh.c             |  4 ++--
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst
index 20936994ce..4075929a76 100644
--- a/docs/manpages/virsh.rst
+++ b/docs/manpages/virsh.rst
@@ -907,23 +907,6 @@ print that all CPU models are accepted for these architectures and the actual
 list of supported CPU models can be checked in the domain capabilities XML.


-echo
-----
-
-**Syntax:**
-
-::
-
-   echo [--shell] [--xml] [err...] [arg...]
-
-Echo back each *arg*, separated by space.  If *--shell* is
-specified, then the output will be single-quoted where needed, so that
-it is suitable for reuse in a shell context.  If *--xml* is
-specified, then the output will be escaped for use in XML.
-If *--err* is specified, prefix ``"error: "`` and output to stderr
-instead of stdout.
-
-
 hypervisor-cpu-compare
 ----------------------

diff --git a/tools/vsh.c b/tools/vsh.c
index f9600bafba..f44db5d56d 100644
--- a/tools/vsh.c
+++ b/tools/vsh.c
@@ -3139,10 +3139,10 @@ const vshCmdOptDef opts_echo[] = {

 const vshCmdInfo info_echo[] = {
     {.name = "help",
-     .data = N_("echo arguments")
+     .data = N_("echo arguments. Used for internal testing.")
     },
     {.name = "desc",
-     .data = N_("Echo back arguments, possibly with quoting.")
+     .data = N_("Echo back arguments, possibly with quoting. Used for internal testing.")
     },
     {.name = NULL}
 };
-- 
2.31.1




More information about the libvir-list mailing list