From e82bf2e9d61635112da283945d7b02c5bb87ed18 Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 15 May 2023 22:33:07 -0500 Subject: [PATCH] update man page for 1.2.0 --- spot.1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spot.1 b/spot.1 index aed919be..b7621c7e 100644 --- a/spot.1 +++ b/spot.1 @@ -1,4 +1,4 @@ -.TH "SPOT" 1 v1.1.0 20230514T060324 spot manual +.TH "SPOT" 1 1.2.0 spot manual .\" Automatically generated by Pandoc 3.1.2 .\" .\" Define V font for inline verbatim, using C font in formats @@ -515,6 +515,11 @@ before executing the next command. Allows to specify the timeout as well as check interval. Example: \f[V]wait: {\[dq]cmd\[dq]: \[dq]curl -s --fail localhost:8080\[dq], \[dq]timeout\[dq]: \[dq]30s\[dq], \[dq]interval\[dq]: \[dq]1s\[dq]}\f[R] +.IP \[bu] 2 +\f[V]echo\f[R]: prints the specified message to the console. +Example: \f[V]echo: \[dq]Hello World $some_var\[dq]\f[R]. +This command is useful for debugging purposes and also to print the +value of variables to the console. .SS Command options .PP Each command type supports the following options: @@ -550,7 +555,11 @@ remote host(s) and if it returns 0, the primary command will be executed. For example, \f[V]cond: \[dq]test -f /tmp/foo\[dq]\f[R] will execute the primary script command only if the file \f[V]/tmp/foo\f[R] exists. -\f[V]cond\f[R] option supported for \f[V]script\f[R] command type only. +Condition can be inverted by adding \f[V]!\f[R] prefix, i.e. +\f[V]! test -f /tmp/foo\f[R] will pass only if file \f[V]/tmp/foo\f[R] +doesn\[aq]t exist. +Please note that \f[V]cond\f[R] option supported for \f[V]script\f[R] +command type only. .PP example setting \f[V]ignore_errors\f[R], \f[V]no_auto\f[R] and \f[V]only_on\f[R] options: