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/02/12 03:22:33 UTC

[GitHub] [pulsar] wangzhiwubigdata opened a new pull request #14254: [testclient] Add short name for parameter

wangzhiwubigdata opened a new pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254


   ## Motivation
   
   - Add short name '-s' for parameter '--subscription'
   - Add short name '-r' for parameter '--role'
   
   ## Modifications
   - pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
   
   ## Verifying this change
   
    Make sure that the change passes the CI checks.
   (Please pick either of the following options)
   
   This change is already covered by existing tests.
   
   ## Does this pull request potentially affect one of the following parts:
   
   If yes was chosen, please highlight the changes
   
   Dependencies (does it add or upgrade a dependency): (yes / **no**)
   The public API: (yes / **no**)
   The schema: (yes / **no** / don't know)
   The default values of configurations: (yes / **no**)
   The wire protocol: (yes / **no**)
   The rest endpoints: (yes / **no**)
   The admin cli options: (yes / **no**)
   Anything that affects deployment: (yes / **no** / don't know)
   
   ## Documentation
   
   Check the box below or label this PR directly (if you have committer privilege).
   
   ## Need to update docs?
   
   - [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] wangzhiwubigdata commented on a change in pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
wangzhiwubigdata commented on a change in pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#discussion_r805113678



##########
File path: pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
##########
@@ -274,11 +274,11 @@ void run() throws PulsarAdminException {
         @Parameter(description = "tenant/namespace", required = true)
         private java.util.List<String> params;
 
-        @Parameter(names = "--subscription", description = "Subscription name for which permission "
+        @Parameter(names = {"-s", "--subscription"}, description = "Subscription name for which permission "
                 + "will be revoked to roles", required = true)
         private String subscription;
 
-        @Parameter(names = "--role", description = "Client role to which revoke permissions", required = true)
+        @Parameter(names = {"-r", "--roles"}, description = "Client role to which revoke permissions", required = true)

Review comment:
       > Please keep the previous full name “--role”
   
   sure,fixed




-- 
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] wangzhiwubigdata commented on pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
wangzhiwubigdata commented on pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#issuecomment-1036975602


   /pulsarbot run-failure-checks


-- 
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] yuruguo commented on a change in pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
yuruguo commented on a change in pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#discussion_r805112410



##########
File path: pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
##########
@@ -254,11 +254,11 @@ void run() throws PulsarAdminException {
         @Parameter(description = "tenant/namespace", required = true)
         private java.util.List<String> params;
 
-        @Parameter(names = "--subscription",
+        @Parameter(names = {"-s", "--subscription"},
                 description = "Subscription name for which permission will be granted to roles", required = true)
         private String subscription;
 
-        @Parameter(names = "--roles", description = "Client roles to which grant permissions (comma separated roles)",
+        @Parameter(names = {"-r", "--roles"}, description = "Client roles to which grant permissions (comma separated roles)",

Review comment:
       It is recommended to use the short name “-rs” instead of “-r”




-- 
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] yuruguo commented on a change in pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
yuruguo commented on a change in pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#discussion_r805112200



##########
File path: pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
##########
@@ -274,11 +274,11 @@ void run() throws PulsarAdminException {
         @Parameter(description = "tenant/namespace", required = true)
         private java.util.List<String> params;
 
-        @Parameter(names = "--subscription", description = "Subscription name for which permission "
+        @Parameter(names = {"-s", "--subscription"}, description = "Subscription name for which permission "
                 + "will be revoked to roles", required = true)
         private String subscription;
 
-        @Parameter(names = "--role", description = "Client role to which revoke permissions", required = true)
+        @Parameter(names = {"-r", "--roles"}, description = "Client role to which revoke permissions", required = true)

Review comment:
       Please keep the previous full name “--role”




-- 
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] github-actions[bot] commented on pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#issuecomment-1036972180


   @wangzhiwubigdata:Thanks for your contribution. For this PR, do we need to update docs?
   (The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)


-- 
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] codelipenghui merged pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
codelipenghui merged pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254


   


-- 
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] wangzhiwubigdata removed a comment on pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
wangzhiwubigdata removed a comment on pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254#issuecomment-1036975602


   /pulsarbot run-failure-checks


-- 
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] codelipenghui merged pull request #14254: [testclient] Add short name for parameter

Posted by GitBox <gi...@apache.org>.
codelipenghui merged pull request #14254:
URL: https://github.com/apache/pulsar/pull/14254


   


-- 
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