From b9df6c48a9a2732377bd40578b9584d1ff5f4433 Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Mon, 18 Sep 2017 19:01:09 +0200 Subject: [PATCH] Small docs fixes --- .../src/main/asciidoc/using-spring-shell.adoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc b/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc index 63ff97c6..526ad255 100644 --- a/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc +++ b/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc @@ -194,12 +194,16 @@ then the following invocations are all equivalent, as witnessed by the output: ---- shell:>echo 1 2 3 <1> You said a=1, b=2, c=3 + shell:>echo --a 1 --b 2 --c 3 <2> You said a=1, b=2, c=3 + shell:>echo --b 2 --c 3 --a 1 <3> You said a=1, b=2, c=3 + shell:>echo --a 1 2 3 <4> You said a=1, b=2, c=3 + shell:>echo 1 --c 3 2 <5> You said a=1, b=2, c=3 ---- @@ -513,7 +517,7 @@ public class MyCommands { Here you see the `connect` method is used to connect to the server (details omitted), altering state of the command through the `connected` boolean when done. The `download` command will be marked as _unavailable_ till the user has connected, thanks to the presence -of a method named exactly as the command method with the `Availability` prefix in its name. +of a method named exactly as the `download` command method with the `Availability` suffix in its name. The method returns an instance of `Availability`, constructed with one of the two factory methods. In case of the command not being available, an explanation has to be provided. Now, if the user tries to invoke the command while not being connected, here is what happens: @@ -685,7 +689,7 @@ all shell applications need. If you're not happy with the way they behave though If you don't need built-in commands at all, then there is an easy way to "disable" them: just don't include them! Either use a maven exclusion on `spring-shell-standard-commands` or, if you're selectively including Spring Shell dependencies, don't bring that one in! -[source,xml] +[source,xml,subs=attributes+] ---- org.springframework.shell