yakut icon indicating copy to clipboard operation
yakut copied to clipboard

Add format command

Open maksimdrachov opened this issue 1 year ago • 2 comments

I would like the following command:

yakut format zubax.low_level_io.Access

It prints out which format I should use to pass variables for this DSDL type.

maksimdrachov avatar May 08 '24 13:05 maksimdrachov

This can be accomplished as follows

image

In order to use this with yakut, we need to wrap this statement with single quotes once more:

yakut call 125 uavcan.node.ExecuteCommand '{'command': 0, 'parameter': 'firmware.bin'}'

maksimdrachov avatar Jul 25 '24 12:07 maksimdrachov

The form you're looking for is either JSON or YAML. For example:

>>> import json
>>> print(json.dumps(example_message))

Your example needs double quotes otherwise it won't work in some shells.

pavel-kirienko avatar Jul 30 '24 14:07 pavel-kirienko