canonical / ubuntu-desktop-provision

Ubuntu Desktop Provision
GNU General Public License v3.0
58 stars 27 forks source link

generator: accept multiple .py files as input #765

Closed ogayot closed 1 month ago

ogayot commented 1 month ago

The types.py file in the Subiquity tree is getting difficult to maintain and it would be ideal to split it into multiple files going forward.

Ensure that the generator script can parse content from multiple files.

NOTE: Previously the syntax ./generator.py file1 file2 would parse "file1" and output to "file2". Now, this syntax would parse "file1" and "file2" ; and would output to the standard output. The generator will look for specific file extensions when reading (i.e., .py) and writing (i.e., .dart) so there should be no risk of overwriting important files if using the generator incorrectly.

d-loose commented 1 month ago

Ah, a tiny nitpick: could you please sign your commit? :)

ogayot commented 1 month ago

Ah, a tiny nitpick: could you please sign your commit? :)

Sure, done! :+1: