Skip to content

Spring Boot CLI "quiet" option doesn't silence the banner #6918

@gregturn

Description

@gregturn

As shown here => https://github.com/spring-projects/spring-boot/blob/v1.4.0.RELEASE/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/RunCommand.java#L141-L150

The CLI DOES properly suppress all logging. However, it still prints out a banner to the screen, making it unsuitable for UNIX-y style scripts.

$ spring version
Spring CLI v1.4.0.RELEASE
$ spring run -q /usr/local/bin/bootconsole.groovy < ~/Dropbox/Greg/learning-spring-boot-2nd-edition/1/fragment_01.txt 

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.0.RELEASE)

(the rest of that example script is output that is expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions