-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create convention for organization of CLI helper functions #43
Comments
@sirajyasin is working on this issue. i am not able to assign it to him. can some one help me in assigning this to him? |
@sreejithpunnapuzha I'm unable to add him as well. I've done some digging into why this keeps happening, and it seems as though Github disallows assigning issues to arbitrary users to prevent abuse. In order to assign a user, that user must either have write permissions to the repo (as of now, I believe this is limited to WC and cores), or they must have left a comment on the issue. @sirajyasin if you would like me to assign you to this issue, please leave a comment here. |
@ian-howell , thanks for looking into the GitHub issue. |
Related Change #713755Subject: Organize CLI helper functions ApprovalsCode-Review
+2 Alexander Hughes
+2 Ian Howell
Verified
+2 Zuul
Workflow
+1 Ian Howell Last Updated: 2020-04-22 16:45:08 CDT |
Removed the cmds.go within config/ and added a helper for config ( config_helper.go ). If this approach is agreed, then we can create helpers for respective packages when required and have the additional validations or any kind of helper functions done there PS for review in Gerrit |
* moving cli helper functions to the respective packages with _helper. * removed cmds.go within pkg/ dir and added config_helper.go * In the first commit(https://review.opendev.org/#/c/707216/) commit CLI helper functions were moved from the cmd/config package to the pkg/config package * Now we are trying to move the CLI helper functions within their respective packages instead of a command cmds.go. * Creating and implementing this convention will help us better distinguish library code and CLI helper code * Added MaxNArgs as 1 for get-credentials and updated test cases Relates-To: #43 Change-Id: Ibb8139102bd98c6c7596bd97377cf83381cbeb00
The commit is merged. So this issue can be marked closed. Going further i will follow the comment convention to auto close. |
A [Related Change](https://review.opendev.org/778359 was merged. This issue may be ready to close. |
Relates-To: #27
Problem description (if applicable)
As part of #27, CLI helper functions were moved from the cmd/config package to the pkg/config package. In the associated Gerrit change for #27, @dukov pointed out that we should create a convention for where CLI helper functions are stored inside their respective packages. Creating and implementing this convention will help us better distinguish library code and CLI helper code.
Proposed change
Create and implement a convention for organization of CLI helper functions.
The text was updated successfully, but these errors were encountered: