FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
801 stars 137 forks source link

Added two commands for future replacement of 'apio init'. #417

Closed zapta closed 1 month ago

zapta commented 1 month ago

This PR adds two commands with the intention to replace the existing apio init command. They are apio create'to create an apio.ini from scratch and apio modify to modify selected vars while preserving the reset.

The apio init command was left unchanged case it's may used by IceStudio (need to verify). If IceStudio does use apio init, it can be easily be migrated to the new commands (once the new apio is released).

Motivation:

  1. apio init selects the create-from-scratch vs modify-and-preseve-the-rest modes implicitly which is counter intuitive.
  2. apio init doesn't preserve well other vars in apio.in
  3. apio init doesn't preserve comments in the apio.ini.