ViliusS opened a new pull request, #4980:
URL: https://github.com/apache/activemq-artemis/pull/4980

   Previously it was not so easy to parse `artemis user list` output. If one 
would want to do something in a bash script with every user he had to do 
something like this:
   
   ```
   while read -r user; do something with `echo $user | sed 
's/^"\(.*\)".*/\1/'`; done < ./artemis user list --url tcp://localhost:61616 
--user admin --password pass
   ```
   
   This patch splits user and roles with a space and removes quotes around the 
user. So now one could just do:
   ```
   while read -r user roles; do something with $user; done < ./artemis user 
list --url tcp://localhost:61616 --user admin --password pass
   ```


-- 
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: gitbox-unsubscr...@activemq.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to