b0
, occasionallyThe quick hints if you need to use the b0
tool occasionally.
b0
b0 --what
b0 list
b0 test
b0 test -l # Also run the long test
b0 test --what # Show what will run
b0 list # Spot the unit name u you are interested in
b0 -- u … # Build u and run with arguments.
b0 -b -- u … # Back to build only
b0 -- lib # If lib is a library gets you in a REPL
The following forms can be used in order to have up-to-date artefacts but avoiding timing the build.
time $(b0 --path -- u) …
hyperfine "$(b0 --path -- u) …"
b0 -- .show-url u
b0 -- .show-url --help # See the different modes of operation
b0 show u
eval $(b0 lock)
cd /any/where/
b0 -- u …
b0 init src > module.ml # Default has OCaml syntax
b0 init src unit.h unit.c # Uses extensions for syntax
b0 init src -x > example.ml # Uses CC0-1.0 license
b0 init src --help
b0 list # Spot units names or packs you are interested in
b0 -u lib -p pack # Build unit 'lib' and pack 'pack'
b0 delete
b0 delete -a # Clean
b0 log
b0 log -l
b0 log -d
b0 log -e
b0 log -u