Improvements for gendoc command #578

Merged
fyrchik merged 5 commits from fyrchik/frostfs-node:fix-gendoc into master 2023-08-10 11:10:14 +00:00

5 Commits (master)

Author SHA1 Message Date
Evgenii Stratonikov 8e24665d96 [#578] gendoc: Allow to override flags
Build / Build Components (1.19) (pull_request) Failing after 3s Details
Tests and linters / Lint (pull_request) Failing after 4s Details
Tests and linters / Tests (1.20) (pull_request) Failing after 3s Details
Tests and linters / Tests with -race (pull_request) Failing after 2s Details
Tests and linters / Staticcheck (pull_request) Failing after 3s Details
Vulncheck / Vulncheck (pull_request) Failing after 3s Details
Build / Build Components (1.20) (pull_request) Successful in 9m37s Details
Tests and linters / Tests (1.19) (pull_request) Successful in 11m6s Details
The command is used in multiple places across the whole FrostFS
ecosystem. While we want to have uniform interfaces everywhere,
sometimes we can't: already defined global flags can be harder to change
because of our obligations to the users. Cobra framework doesn't allow
conflicting flags (we can have global ones), so allow to override them.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-09 08:59:56 +03:00
Evgenii Stratonikov 920c6117b6 [#578] gendoc: Remove flag shorthands
Make it harder to encounter conflicts in already existing commands.
Because the command is executed once, I don't think the usability is
worse.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-08 18:51:53 +03:00
Evgenii Stratonikov c800b64b12 [#578] gendoc: Add date to man pages
```
HISTORY
       8-Aug-2023 Auto generated by spf13/cobra
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-08 18:50:30 +03:00
Evgenii Stratonikov 18190c2c1e [#578] gendoc: Allow to customize man pages
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-08 18:23:43 +03:00
Evgenii Stratonikov 7e69372fb9 [#578] gendoc: Replace NSPCC with FrostFS
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-08 18:23:43 +03:00