Orzelius aa9569e5d8
chore: refactor cluster create cmd flags
* declare all cluster create flags as constant variables
  This unifies the code and can later be used to differentiate between darwin and linux supported flags.
* move cluster create flags to individual flagsets
  This sorts the flags by provider and will allow to check if the correct provider's flags are passed
* move ipv6 flag to qemu flags
  This flag is currently only supported on qemu, but the internal logic still assumes the possibility of ipv6 on other providers.
* programmatically add provider to create cluster flags
       * this adds the provider to all the flags (some were missing)
       * add the provider to the start of the description as it's the most important bit
* error if an invalid provider's flag is passed
  note: this is a breaking change, but people who'll run into this will already have a broken or invalid system due to usning incorrect flags.
* remove deprecated "masters" flag
  as we're making breaking changes anyway it makes sense to get rid of this as well.

Signed-off-by: Orzelius <33936483+Orzelius@users.noreply.github.com>
2025-05-14 22:00:55 +09:00
..