• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4657
44%

Build:
DEFAULT BRANCH: master
Ran 15 Oct 2025 08:20AM UTC
Jobs 1
Files 989
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Oct 2025 08:00AM UTC coverage: 36.225% (-0.02%) from 36.244%
#4657

push

github

topframe
feat(shell): Improve quit command in non-interactive mode

The 'quit' command was not suitable for scripted or piped execution. It would hang at the confirmation prompt, assuming an interactive user was present.

This commit introduces non-interactive mode awareness to the shell, leading to the following improvements for the 'quit' command:

- In non-interactive sessions (e.g., `echo "quit" | shell.bat`), the command now executes without a confirmation prompt.
- The "Bye." exit message is now suppressed in non-interactive mode for a cleaner, script-friendly output.

To achieve this, an `isInteractive()` method has been added to the `ShellConsole` interface, with distinct implementations for `JLineShellConsole` (interactive) and `DefaultShellConsole` (non-interactive).

Additionally, `DefaultShellConsole`'s input handling has been made more robust to prevent potential infinite loops when an input stream is closed.

0 of 13 new or added lines in 5 files covered. (0.0%)

6 existing lines in 1 file now uncovered.

14988 of 41375 relevant lines covered (36.22%)

0.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
14.61
-0.17% shell-jline/src/main/java/com/aspectran/shell/jline/console/JLineShellConsole.java
1
0.0
0.0% shell/src/main/java/com/aspectran/shell/console/ShellConsoleWrapper.java
2
0.0
0.0% shell/src/main/java/com/aspectran/shell/command/builtins/QuitCommand.java
4
6.1
-0.31% shell/src/main/java/com/aspectran/shell/console/AbstractShellConsole.java
5
12.94
0.3% shell/src/main/java/com/aspectran/shell/console/DefaultShellConsole.java

Uncovered Existing Lines

Lines Coverage ∆ File
6
70.43
-3.23% shell/src/main/java/com/aspectran/shell/command/option/DefaultOptionParser.java
Jobs
ID Job ID Ran Files Coverage
1 #4657.1 15 Oct 2025 08:20AM UTC 989
36.22
Source Files on build #4657
  • Tree
  • List 989
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2f1b6548 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc