compas-dev / compas-actions.ghpython_components

Trying to make Grasshopper development version-control friendlier since 1337.
MIT License
39 stars 6 forks source link

Auto-generate docstring in procedural mode if not present #8

Closed gonzalocasas closed 2 years ago

gonzalocasas commented 2 years ago

In procedural mode, it seems the component will not show descriptions of inputs/scripts if the code doesn't have at least a minimal docstring at start. Now the componentizer auto-generates one if needed.

See #5

funkchaser commented 2 years ago

Maybe we can add this "minimal docstring" to an example (make an explicit example for the procedural mode) so that it's clear where it has to go?

gonzalocasas commented 2 years ago

Maybe we can add this "minimal docstring" to an example (make an explicit example for the procedural mode) so that it's clear where it has to go?

fixed by auto-generating the docstring now!

funkchaser commented 2 years ago

LGTM thanks ! ;-)