You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an internal docgen tool that uses cobra/doc to generate man pages
and markdown CLI reference from command definitions. Include generated
docs in the build (Makefile) and RPM packaging.
- add internal/tools/docgen with tests for man and markdown output
- add Makefile targets: docs, man, cli
- include man pages in RPM spec
- improve Short, Long, and Example fields on all cobra commands
- fix --default-working-dir to resolve cwd at runtime, not init time
- export Root() for use by doc generators
- upgrade cobra to 1.10.2 (adds go-md2man, blackfriday deps)
Closes: fido-device-onboard#98
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kenneth Giusti <kgiusti@redhat.com>
onboardCmd.Flags().Duration("to2-retry-delay", 0, "Delay between failed TO2 attempts when trying multiple Owner URLs from same RV directive (0=disabled)")
138
-
onboardCmd.Flags().String("default-working-dir", currentDir, "Default working directory for all FSIMs (fdo.command, fdo.download, fdo.upload, fdo.wget)")
130
+
onboardCmd.Flags().String("default-working-dir", "", "Default working directory for all FSIMs (fdo.command, fdo.download, fdo.upload, fdo.wget) (default: current working directory)")
--allow-credential-reuse Allow credential reuse protocol during onboarding
34
+
--cipher string Name of cipher suite to use for encryption (see usage) (default "A128GCM")
35
+
--default-working-dir string Default working directory for all FSIMs (fdo.command, fdo.download, fdo.upload, fdo.wget) (default: current working directory)
36
+
--enable-interop-test Enable FIDO Alliance interop test module (fsim.Interop)
37
+
-h, --help help for onboard
38
+
--insecure-tls Skip TLS certificate verification
39
+
--kex string Name of cipher suite to use for key exchange (see usage)
40
+
--max-serviceinfo-size int Maximum service info size to receive (default 1300)
41
+
--resale Perform resale
42
+
--to2-retry-delay duration Delay between failed TO2 attempts when trying multiple Owner URLs from same RV directive (0=disabled)
43
+
```
44
+
45
+
### Options inherited from parent commands
46
+
47
+
```
48
+
--blob string File path of device credential blob
49
+
--config string Path to configuration file (YAML or TOML)
50
+
--debug Print HTTP contents
51
+
--key string Key type for device credential [options: ec256, ec384, rsa2048, rsa3072]
52
+
--tpm string Use a TPM at path for device credential secrets
0 commit comments