@@ -47,6 +47,7 @@ See 'nats cheat' for a quick cheatsheet of commands
47
47
ncli .Flag ("server" , "NATS server urls" ).Short ('s' ).Envar ("NATS_URL" ).PlaceHolder ("NATS_URL" ).StringVar (& opts .Servers )
48
48
ncli .Flag ("user" , "Username or Token" ).Envar ("NATS_USER" ).PlaceHolder ("NATS_USER" ).StringVar (& opts .Username )
49
49
ncli .Flag ("password" , "Password" ).Envar ("NATS_PASSWORD" ).PlaceHolder ("NATS_PASSWORD" ).StringVar (& opts .Password )
50
+ ncli .Flag ("connection-name" , "Nickname to use for the underlying NATS Connection" ).Default ("NATS CLI Version " + version ).PlaceHolder ("NAME" ).StringVar (& opts .ConnectionName )
50
51
ncli .Flag ("creds" , "User credentials" ).Envar ("NATS_CREDS" ).PlaceHolder ("NATS_CREDS" ).StringVar (& opts .Creds )
51
52
ncli .Flag ("nkey" , "User NKEY" ).Envar ("NATS_NKEY" ).PlaceHolder ("NATS_NKEY" ).StringVar (& opts .Nkey )
52
53
ncli .Flag ("tlscert" , "TLS public certificate" ).Envar ("NATS_CERT" ).PlaceHolder ("NATS_CERT" ).ExistingFileVar (& opts .TlsCert )
@@ -55,9 +56,9 @@ See 'nats cheat' for a quick cheatsheet of commands
55
56
ncli .Flag ("timeout" , "Time to wait on responses from NATS" ).Default ("5s" ).Envar ("NATS_TIMEOUT" ).PlaceHolder ("NATS_TIMEOUT" ).DurationVar (& opts .Timeout )
56
57
ncli .Flag ("js-api-prefix" , "Subject prefix for access to JetStream API" ).PlaceHolder ("PREFIX" ).StringVar (& opts .JsApiPrefix )
57
58
ncli .Flag ("js-event-prefix" , "Subject prefix for access to JetStream Advisories" ).PlaceHolder ("PREFIX" ).StringVar (& opts .JsEventPrefix )
58
- ncli .Flag ("js-domain" , "JetStream domain to access" ).PlaceHolder ("PREFIX" ). PlaceHolder ( " DOMAIN" ).StringVar (& opts .JsDomain )
59
+ ncli .Flag ("js-domain" , "JetStream domain to access" ).PlaceHolder ("DOMAIN" ).StringVar (& opts .JsDomain )
59
60
ncli .Flag ("inbox-prefix" , "Custom inbox prefix to use for inboxes" ).PlaceHolder ("PREFIX" ).StringVar (& opts .InboxPrefix )
60
- ncli .Flag ("domain" , "JetStream domain to access" ).PlaceHolder ("PREFIX" ). PlaceHolder ( " DOMAIN" ).Hidden ().StringVar (& opts .JsDomain )
61
+ ncli .Flag ("domain" , "JetStream domain to access" ).PlaceHolder ("DOMAIN" ).Hidden ().StringVar (& opts .JsDomain )
61
62
ncli .Flag ("context" , "Configuration context" ).Envar ("NATS_CONTEXT" ).StringVar (& opts .CfgCtx )
62
63
ncli .Flag ("trace" , "Trace API interactions" ).BoolVar (& opts .Trace )
63
64
0 commit comments