Conversation
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
|
let's document actual external cli use now, need something to share with devs/users.. cli.md? like wasn't obvious I can now do a:
also can we get an optional printout of values in the config tree when running dimos? I'd enable this by default also |
I missed the usage/cli.md file, so have updated there. I'd note that while we can use
I'm not clear exactly what you mean here, can you provide an example? Should probably be pushed to a separate PR though. |
Problem
Users need to be able to pass configuration options for blueprints. This adds basic support for CLI arguments, envvars and config files.
Closes #1082.
Solution
Typer is not compatible with this kind of dynamic configuration, therefore we basically tell it to give us arbitrary strings via
-oand then do all the processing ourselves, along with providing our own help output.How to Test
Should be able to add
--helpto dimos run to see blueprint options and then configure them with-o, env vars and JSON config files. For example:RERUNBRIDGEMODULE__MEMORY_LIMIT="50%" dimos --simulation run unitree-go2 -o voxelgridmapper.voxel_size=1 --config=foo.json