You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/14 14:04:54 UTC

[GitHub] [pulsar] nicoloboschi opened a new pull request, #17651: [improve][cli] Pulsar shell: add command to update property of a config

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

   ### Motivation
   
   In Pulsar shell you can only update the whole configuration but you can't modify it later. For instance, if I import a new config and then I want to enable a feature or a property, I need to read the config, copy, modify and update.
   My use-case is that I want to enable custom commands in a quick way.
   
   ### Modifications
   
   * Added new command `config update-property -p <prop> -v <value> <config>`
   It updates or creates a new entry in the config. If you modify the current config, the shell will reload applying the new config.  
   
   For example, now I can enable a cli extensions directly from the shell:
   ```
   config use my-config
   config update-property -p customCommandsFactories -v <extensionname> my-config
   ```
   
   - [x] `doc` 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] nicoloboschi merged pull request #17651: [improve][cli] Pulsar shell: add command to set/get property of a config

Posted by GitBox <gi...@apache.org>.
nicoloboschi merged PR #17651:
URL: https://github.com/apache/pulsar/pull/17651


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org