Contribute to okf: build from source and run the tests
Contribute to okf: report bugs, build from source, run the tests
Section titled “Contribute to okf: report bugs, build from source, run the tests”Issues and pull requests are welcome.
Report bugs and requests
Section titled “Report bugs and requests”- Read Known limitations. The problem may be listed with a workaround.
- Open an issue in
rierek/okf-cli. Give the command, the catalogue layout (or a minimal one) and the output.
Build from source
Section titled “Build from source”The Go module is in go/. The binary is written to go/bin/okf.
just go-buildRun just test before a pull request. It must be green. Tests never write into a real catalogue and use their own temporary directory.
| Recipe | What it runs |
|---|---|
just test |
builds the binary, then runs the Python unit tests (needs uv) |
just golden |
compares command output with the golden files, using the Python script |
just golden-go |
the same comparison against the Go binary |
just go-completion-scripts --check |
checks the generated completion scripts |
just completion-check |
checks shell completion against the Go binary |
Commit titles use <type>(<scope>): <subject>, at most 72 bytes.
Docs site
Section titled “Docs site”Content is in wiki/, the site is in site/. The command pages are generated from the binary and are not checked in.
| Recipe | What it does |
|---|---|
just docs-gen |
generates the command pages |
just docs-build |
builds the site into site/dist |
just docs-dev |
starts the dev server |
License and credit
Section titled “License and credit”okf is licensed under Apache-2.0. It is inspired by Cole Medin’s single-bundle okf-cli.py.