-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
proposalEnhancement idea or proposalEnhancement idea or proposal
Description
Proposed change
We do not set the default URL here:
https://github.com/alexbozhenko/natscli/blob/v0.2.3/nats/main.go#L51
So it is not clear which server it will connect to by default when no context selected.
-s, --server=URL NATS server urls ($NATS_URL)
If no URL and no context is provided, it is coming from here:
https://github.com/nats-io/jsm.go/blob/v0.2.4/natscontext/context.go#L142
Can we set default URL in nats.go, to have:
-s, --server="nats://127.0.0.1:4222" NATS server urls ($NATS_URL)
(But that would require changing code around how url from context vs url from cli is handled)
Use case
Let users know that default url will be used if no context is selected.
Contribution
No response
Metadata
Metadata
Assignees
Labels
proposalEnhancement idea or proposalEnhancement idea or proposal