nicoloboschi opened a new pull request, #16330:
URL: https://github.com/apache/pulsar/pull/16330

   Master Issue: #16250 
   
   ### Motivation
   
   In order to help cluster operators to create scripts and automation around 
Pulsar shell, it's very useful to have the possibility to read env variables 
inside the cli.
   
   ### Modifications
   - Added Bash variable replacement inside the CLI. The only supported formats 
are ${variable:-default} and $variable.
   - The replacement is handled by commons-text library  (`StringsSubstitutor`).
   
   
   Usages:
   ```
   export tenant=mytenant
   export namespace=mynamespace
   
   ./bin/pulsar-shell
   pulsar> admin tenants create $tenant
   pulsar> admin tenants create $tenant/$namespace
   
   ```
   
   
   - [x] `doc-required` 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to