-
Notifications
You must be signed in to change notification settings - Fork 96
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
main: make cmd documentation coherent #671
main: make cmd documentation coherent #671
Conversation
Awesome! I should be able to look at that soon! |
Hi! Thank you very much for that contribution! I looked through it and also compiled from your pull request, looks good! In LND we aren't consistent with whether sentences end with a I'll let @ViktorTigerstrom comment on whether he wants to surface |
Yes, I can change the global options to start with an upper case letter. Should I wait to find out about the Actions category, or just make that change and create a new pull request? |
Hi @nonfungible-human! First of all, thanks a lot for the contribution, it's much appreciated 🙏🔥! I'll start by commenting regarding moving I've discussed a bit internally, and I think it's starting to get a bit confusing that we have lot's of categories with just 1 entry. Categories as a concept is then starting loose it's meaning. Instead, I suggest that we change the categories a bit, so that they become groupings with relevant commands underneath.
Lastly, this PR now has a separate commit that merges with the |
@ViktorTigerstrom I think your suggestion for the categories is a good idea and can definitely make that change as well. This is my first pull request for this project, so I'm not familiar with the process yet and am not sure how to Right now, on my forked repository, branch issue591 is telling me On my local system, this is what I see when I run
|
Great, thanks! Ok, I'll try to help out regarding the rebase issues! I'd also recommend reading the Bitcoin Core contributors guideline in regards how to handle the rebase flow, as it explains the default process: contributors. For your specific situation right now, I think running the following would commands in these steps should help:
Let me know if that helps! |
@ViktorTigerstrom I ran the rebase commands and I'm pretty sure it worked correctly. I made the changes and pushed them out to my forked repo. So I think everything should be ready to go now. I ran the rebase command again after reading the info you posted. Now I believe my commits are all combined into one. |
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 a lot for implementing the new category structure, it looks great!
Unfortunately this PR still includes the merge commit with master, as well as a dependabot bump commit which shouldn't be part of this PR. So currently the PR includes 3 commits, but should only contain the one commit that contains your changes.
So you'd need to run the rebase command again to solve that, you'll know that it was successful once the PR only contains the single commit containing your changes only :).
Try once more to run:
git rebase -i origin/master
When you do that, you'll see the interactive git interface that let's you choose which commits should be kept in the branch, and which should be dropped. Ensure that all commits except the commit containing your changes is marked as drop
, and then press w
to end the interactive rebase.
I've also added some small feedback with some "Usage" fields for flags that aren't following the style you've decided to implement. It'd be great if you could correct those :)!
Finally, one last thing I definitely think we also should fix with this PR, is that we have inconsistent string types for different "Description" sections throughout the help docs.
Some "Description" sections uses single quotes i.e. the ` char, and some "Description" sections uses double quotes i.e. the " char. This leads to an inconsistency that we'll sometimes have leading newline, and sometimes have trailing new lines. It would be awesome if you could fix that as well!
@ViktorTigerstrom It looks like the rebase worked correctly this time. After pushing to my fork, the branch is ahead of master by 1 commit. I also made the two changes you pointed out in your last comment. |
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.
Awesome thanks! This is almost good to go now 🎉🚀!
It looks like the rebase worked correctly this time. After pushing to my fork, the branch is ahead of master by 1 commit.
Yes great, it looks like the rebase worked correctly this time, thanks!
I also made the two changes you pointed out in your last comment.
Perfect thanks! Would you also be able to fix the issue with the "Description" fields I commented about above? I.e. that we have inconsistent string types for different "Description" sections throughout the help docs.
We should change so that all "Description" fields uses double quotes for the string type. I've added one example of what needs to be changed in my review below, but please note that there are multiple "Description" fields throughout the docs, where this needs to be addressed.
Lastly, could you please update the commit title of your commit message to align with our contribution guidelines for commit messages LND contribution guidelines?
If you'd like, here's a suggestion for the commit message title that you could use if you'd like:
main: make cmd documentation coherent
Please feel free suggest another commit message title though! Just make sure that it starts with "main:" and is <= than 50 chars, doesn't start with an upper case letter, nor ends with a period.
@ViktorTigerstrom I've made the changes you mentioned. For the strings that changed to double quotes, some of those messages were made up of multiple paragraphs of text, so I added newline characters to separate the paragraphs and spaces to preserve the indentation that was there before. |
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.
Great thanks a lot! Awesome job 🚀🔥!!
tACK LGTM after some final nits have been addressed.
-
Thanks a lot updating the string type of the various description fields! Unfortunately though, one side effect of the made changes is that there are now multiple occasions where the code doesn't adhere to our code formatting rules, as the code should wrap at 80 chars with tabs treated as 8 chars. I know it's a bit annoying to fix these small things. Would you be able to update so that the "Description" fields you changed are wrapped at 80 chars?
-
Thanks for updating to title to "main: make cmd documentation coherent". Though just to clarify, you need to also update the title actual commit message of the 1 commit this PR includes, and not just this PR title. Currently the commit message title is: "An improvement to the litcli help messages.". Once you've made the above changes, if you run the following command, you should be able to change the commit message:
git commit --amend
You can also add the-m
after that to set the actual commit message if that's what you prefer.
Once this has been addressed, this should be good to go 🚀🔥!!
@ViktorTigerstrom I'm pretty sure all the lines are within the correct length now. I've also changed the commit message. I think everything should be ready to go. |
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.
Hi! Congrats on your first commit! I have looked through all your changes and find them consistent, legible and in accordance with our style and writing.
I've also run the changes locally and looked at the new manuals and help pages. Big noticeable improvements, thank you! ACK!
There are still some instances where lit
is written in small caps, but I don't see this as a required change for this PR.
Awesome! Thanks a lot for the review @Liongrass. @nonfungible-human, great job, and congratulations on your first contribution to this repo 🙏!! There's been a small change to the master branch since your last push. Would you be able to update your local master branch to the latest version, and then run |
@ViktorTigerstrom Okay, I think that worked. I pulled master into my fork, and then to my local repo, did the rebase and pushed it back out to my fork. But it still tells me I am 1 commit ahead and 2 commits behind. |
Yes unfortunately your branch is still not based on master, so I can't merge it. I think that what happened is likely that your local master branch isn't synced with the upstream repo, and therefore when you rebase on your local branch you'll still be behind.
|
@ViktorTigerstrom Okay, I was doing it a little differently yesterday. It now tells me my fork is just 1 commit ahead of master. So I think it is finally ready to go. |
This PR addresses some of the problems with the litcli --help message reported in Issue 591.
These changes affect the text displayed in the help messages and do not affect any functionality of the application. Everything else was left unchanged.
The changes are as follows:
Limitations of the cli package:
Formats of command and options descriptions: