-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Update CLI documentation for status and reset commands (resolves #4771) #8070
Conversation
588fddd
to
f244fc4
Compare
01615c9
to
50f3fe0
Compare
@adrianbenavides Hi! Could you please address these?
|
implementations/rust/ockam/ockam_command/src/reset/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/reset/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
I think I answered this in the review. Let me know if you have any further questions!
The reset command should be advertised as a dangerous / "use with caution" command really (we should display this in the command docs somehow), as it's used to remove all the local state permanently. Usually, the user will use more granular delete commands (e.g. |
@adrianbenavides Thanks a lot for your review! And apologies for the delay on this PR. I'll resume work on it within the next couple of days. |
6199b92
to
44218ac
Compare
@adrianbenavides I've made the suggested modifications. Please take a look again when you get the chance. Thank you! |
@adrianbenavides What about a superscript-type tag like this (saying "unsafe" or similar), in addition to the warning-level notification in the doc itself? |
Awesome, thanks @Wryhder ! I'll take a look as soon as possible 🙏 |
That would be nice indeed. We do something similar with the "preview" tag (here and here) if that's useful. |
implementations/rust/ockam/ockam_command/src/status/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/reset/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/reset/static/long_about.txt
Outdated
Show resolved
Hide resolved
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.
@Wryhder I've left some comments to improve the output a little bit but it looks nice, thanks for taking the time with this!
One final recommendation: make sure you run cargo clippy
and cargo fmt
and squash all the commits into a single one once you have everything ready.
a87f1ce
to
021ab69
Compare
e0482dd
to
d827ef7
Compare
@adrianbenavides I've made the modifications, run |
@adrianbenavides This should be in a new PR, yes? |
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.
Hey @Wryhder just left some minor changes and we are good to merge!
implementations/rust/ockam/ockam_command/src/reset/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/status/static/long_about.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/reset/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
implementations/rust/ockam/ockam_command/src/reset/static/after_long_help.txt
Outdated
Show resolved
Hide resolved
a63401c
to
b7ddadd
Compare
a63401c
to
61b884b
Compare
@adrianbenavides I added the final newlines and modified the commit message while squashing the commits. I've successfully changed the commit message but the newlines seem to have disappeared. I'm trying to figure out if it's my editor or what else. |
6a4d72f
to
f441c40
Compare
@adrianbenavides There are still a couple of CI jobs failing. One is about my commit not being signed and verified. Wanted to let you know I'll take a look by weekend. |
439b53d
to
7357bb2
Compare
…mands Signed-off-by: Wryhder <[email protected]>
7357bb2
to
8c1f90f
Compare
@adrianbenavides I think this is good to go now. Please confirm when you get the chance. Thanks very much for your time and help with this. |
Thanks @Wryhder for taking care of that! It all looks good now. The failing CI job is not related to this PR, and will get fixed on develop soon. We'll merge your PR after that is fixed. Thanks again for the time you put into this 🙏 |
Hey @Wryhder ! I've created a PR here with your commit fixing the conflicts for you. I've cherry-picked your commit, so you will get all the credit for your contribution. Sorry again for the delay. We've been pretty busy working in the latest release and I didn't have the time to come back to this. I'm closing this PR in favor of the other. |
Current behavior
The docs for the
status
andreset
commands are missing code examples and a long about section.Proposed changes
Resolves #4771
The modifications are as suggested in this comment.
Checks