Method of creating a component from scratch #962
-
Hi there, What method do you use to create a new component from scratch? Personally I copy and paste from an already developed component where I only keep the .xml files and start customizing them. This is clearly repetitive and prone to human error (name changes for example). Do you have a better way to do this? Is there a fprime-util command that I don't know of to do this? From my developer point of view, I would like to have available a "fprime-util create-comp" command to create a component. >$fprime-util create-comp --help
Create a file tree in a folder for the component to be created.
-n, --name name of the component
-k, --kind type of component (active, passive...) This would generate a folder for the component containing the .xml template files for the type of component (active, passive...) desired and the cmake file for the build chain. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @tThibFrgsGmz, I built a cookiecutter template to make the process easier. You can see the original standalone template here: https://github.com/SterlingPeet/cookiecutter-fprime-component However, I would recommend checking out the newer adapted version that is included in fprime-tools:
See if that makes things easier for you. Thanks, Sterling Peet |
Beta Was this translation helpful? Give feedback.
Hello @tThibFrgsGmz,
I built a cookiecutter template to make the process easier. You can see the original standalone template here:
https://github.com/SterlingPeet/cookiecutter-fprime-component
However, I would recommend checking out the newer adapted version that is included in fprime-tools:
fprime-util new -h
See if that makes things easier for you.
Thanks,
Sterling Peet