-
Notifications
You must be signed in to change notification settings - Fork 38
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
docs: add docs about all cli commands #2983
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2983 +/- ##
=======================================
Coverage 22.88% 22.88%
=======================================
Files 785 785
Lines 58806 58810 +4
=======================================
+ Hits 13457 13460 +3
- Misses 44469 44471 +2
+ Partials 880 879 -1 ☔ View full report in Codecov by Sentry. |
I think it will be useful, the same way we check CHANGELOG and configuration files. I am sure I will forget regenerating docs. |
5aceda3
to
c96c7c6
Compare
Add flag to gendoc command that defines if gen tag of cobra will be printed. Signed-off-by: Andrey Butusov <[email protected]>
Do this for the same command output so that the documentation generation is the same for the command. Signed-off-by: Andrey Butusov <[email protected]>
Generate docs with `neofs-cli gendoc ./docs/cli-commands -d`. Add Makefile target for generation docs. Closes #1413. Signed-off-by: Andrey Butusov <[email protected]>
5df620a
to
d003143
Compare
@@ -14,7 +14,8 @@ import ( | |||
) | |||
|
|||
const ( | |||
gendocTypeFlag = "type" | |||
gendocDisableAutoGenTagFlag = "disable-auto-gen-tag" |
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.
not sure we need it, but dont mind, mb @roman-khimov has some thoughts
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.
I think we do because otherwise we can't have consistent output each time we run the generator.
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.
i meant if we need it to be possible to change via a separate command flag
5c5e145
to
d003143
Compare
b5fe96d
to
15bbd72
Compare
- name: Fail if CLI commands files are changed but the documentation is not updated | ||
run: | | ||
git add -N docs/cli-commands | ||
git diff --exit-code -- docs/cli-commands/ |
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.
can you add new line at the end of file, please?
Signed-off-by: Andrey Butusov <[email protected]>
15bbd72
to
3050baa
Compare
Generate docs with
neofs-cli gendoc ./docs/cli-commands
.Closes #1413.
So, if we add a new command, should we generate docs now? Should we also add some checks so that we don't forget to do this?