-
Notifications
You must be signed in to change notification settings - Fork 154
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
add help options to display helper text for cmd applications #661
add help options to display helper text for cmd applications #661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My feedback on your changes, you can of course ignore them
@IvanGael This gives user to define the custom helper doc to be used printed for each sub command. We also wanted to have a default helper functionality that prints all available sub commands for the executed command in case the command is not present. |
@vipul-rawat After fixing the issues and implementing the various suggestions, should I close this pull request before creating another one? |
@IvanGael Try to update this PR itself Also please fix the merge conflicts |
@vipul-rawat I just added new commit to this PR. Try to review. |
@vipul-rawat What causes merge conflict issues? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. I way simpler to read and maintain now, I think.
I will let maintainers/owner share their point of view
@IvanGael - Merge conflicts happen when 2 branches make different changes to the single line, it would be because of other PR (which had changes to the same line as this branch) getting merged to base branch. You can resolve them easily, but be careful as we would not want to remove the changes from other branch. |
Okay @srijan-27 I will try to resolve it |
@vipul-rawat @srijan-27 @ccoVeille I don't understant why this line cause conflict |
In such a case there is no real need to understand. Remove everything between <<<< and >>>> then save. Your IDE will fix the import |
@IvanGael are you still having trouble fixing the conflict? |
@vipul-rawat Normally there should be no more merge conflicts because I did what @ccoVeille suggested to me. I don't understand why this issue persists. Could you help me with this ? |
You need to update your branch in the forked repo with the current development branch of this repo(in which this PR merges the code).
These 2 steps should give you a conflict in your gofr_test file, resolve them and push it to your branch. |
…elpSubCommandsFeature
@vipul-rawat Check if all is good for the merging |
@IvanGael tests and code quality checks are failing, please use golang ci-lint v1.57.2 to check for any linter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…elpSubCommandsFeature
…gofr into helpSubCommandsFeature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one small question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the unused code - fullpattern
field
Rest implementation look good 👍
You did it @IvanGael |
@ccoVeille I'm glad you appreciate it. Looking forward to continue to contribute to this project. |
* Update workflow and docs for docs deployment (#693) * Revert "Update workflow and docs for docs deployment (#693)" (#694) This reverts commit c2e022d. * Added additional logging for datasource (#655) Co-authored-by: Umang Mundhra <[email protected]> Co-authored-by: Srijan Rastogi <[email protected]> Co-authored-by: srijan-27 <[email protected]> * Fe/support for cassandra (#654) Co-authored-by: Aryan Mehrotra <[email protected]> Co-authored-by: Umang Mundhra <[email protected]> Co-authored-by: mehrotra234 <[email protected]> * Add support for local file store (#695) * add help options to display helper text for cmd applications (#661) --------- Co-authored-by: Aryan Mehrotra <[email protected]> Co-authored-by: vipul-rawat <[email protected]> * Revert request_timeout default value (#699) * upgrade framework version --------- Co-authored-by: Aryan Mehrotra <[email protected]> Co-authored-by: KedarisettiSreeVamsi <[email protected]> Co-authored-by: Umang Mundhra <[email protected]> Co-authored-by: Shashank Shekhar <[email protected]> Co-authored-by: mehrotra234 <[email protected]> Co-authored-by: Ivan APEDO <[email protected]> Co-authored-by: vipul-rawat <[email protected]>
Closes: #568
Description:
There are the changes have been made
// cmd.go
The files cmd_test.go, gofr.go, gofr_test.go and examples/sample-cmd/main.go are updated accordingly.
Checklist:
goimport
andgolangci-lint
.