Skip to content

Commit 83fccfa

Browse files
committed
Simplify no args mode
1 parent 4f301fd commit 83fccfa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/kotlin/io/rsocket/cli/Main.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ class Main : Runnable {
152152
inputPublisher = LineInputPublishers(outputHandler)
153153
}
154154

155+
if (listOf(metadataPush, stream, fireAndForget, channel, requestResponse, serverMode).all { !it }) {
156+
stream = true
157+
}
158+
155159
if (route != null) {
156160
if (metadataFormat == null) {
157161
metadataFormat = "composite"

zsh/_rsocket-cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _rsocket_cli_caching_policy() {
1111
_rsocket_cli_urls() {
1212
local host urlpath
1313

14-
compadd tcp://localhost:9898 ws://localhost:9898/rsocket wss://rsocket-demo.herokuapp.com/ws
14+
compadd tcp://localhost:9898 ws://localhost:9898/rsocket wss://rsocket-demo.herokuapp.com/rsocket
1515
}
1616

1717
_rsocket_cli() {

0 commit comments

Comments
 (0)