Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think you will want to load a Context object from the workspace: https://github.com/catkin/catkin_tools/blob/master/catkin_tools/context.py

An example of doing so can be found in some of the existing verbs.

ctx = Context.load(opts.workspace, opts.profile, load_env=False)

https://github.com/catkin/catkin_tools/blob/master/catkin_tools/verbs/catkin_list/cli.py#L75

Which shows you can also leverage the arguments from the context parser using add_context_args(parser)