nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
21 stars 39 forks source link

add force option to generate that will call purge before generating, … #217

Closed csmith608 closed 1 month ago

csmith608 commented 1 month ago

…still need to check edgecases

Related Issue(s) https://github.com/nasa/fprime/issues/2887
Has Unit Tests (y/n) n
Documentation Included (y/n) n

Change Description

Implements force generate the runs a purge

Rationale

QoL

Testing/Review Recommendations

fprime-util generate --force

Future Work

csmith608 commented 1 month ago

@LeStarch

csmith608 commented 1 month ago

@thomas-bc

csmith608 commented 1 month ago

@LeStarch that's fine because the generate -f goes through all the purge logic so it realized those directories don't exist.

This is the result from generate -f

[INFO] Purge build directory at: /Users/crsmith/Documents/fprime/Ref/build-fprime-automatic-native
[INFO] Purge build directory at: /Users/crsmith/Documents/fprime/Ref/build-fprime-automatic-native-ut
[INFO] Skipping purge. The following directory does not exist: /Users/crsmith/Documents/fprime/Ref/build-fprime-automatic-native-ut