Package org.springframework.shell.test
Interface ShellWriteSequence
- All Known Implementing Classes:
ShellWriteSequence.DefaultShellWriteSequence
public interface ShellWriteSequence
Interface sequencing various things into terminal aware text types.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the result.Sequence terminal carriage return.Sequence terminal clear screen.Sequence from command with expectedcarriage return
.cr()
Sequence terminal carriage return.ctrl
(char c) Sequence terminal ctrl.keyDown()
Sequence terminal key down.keyLeft()
Sequence terminal key left.keyRight()
Sequence terminal key right.keyUp()
Sequence terminal key up.static ShellWriteSequence
of
(org.jline.terminal.Terminal terminal) Get a new instance of aShellWriteSequence
.space()
Sequence terminal space.Sequence text.
-
Method Details
-
clearScreen
ShellWriteSequence clearScreen()Sequence terminal clear screen.- Returns:
- a sequence for chaining
-
carriageReturn
ShellWriteSequence carriageReturn()Sequence terminal carriage return.- Returns:
- a sequence for chaining
-
command
Sequence from command with expectedcarriage return
.- Parameters:
command
- the command- Returns:
- a sequence for chaining
-
cr
ShellWriteSequence cr()Sequence terminal carriage return. Alias forcarriageReturn()
- Returns:
- a sequence for chaining
- See Also:
-
text
Sequence text.- Parameters:
text
- the text- Returns:
- a sequence for chaining
-
keyDown
ShellWriteSequence keyDown()Sequence terminal key down.- Returns:
- a sequence for chaining
-
keyLeft
ShellWriteSequence keyLeft()Sequence terminal key left.- Returns:
- a sequence for chaining
-
keyRight
ShellWriteSequence keyRight()Sequence terminal key right.- Returns:
- a sequence for chaining
-
keyUp
ShellWriteSequence keyUp()Sequence terminal key up.- Returns:
- a sequence for chaining
-
space
ShellWriteSequence space()Sequence terminal space.- Returns:
- a sequence for chaining
-
ctrl
Sequence terminal ctrl.- Returns:
- a sequence for chaining
-
build
String build()Build the result.- Returns:
- the result
-
of
Get a new instance of aShellWriteSequence
.- Parameters:
terminal
- the terminal- Returns:
- instance of a write sequence
-