class Kitsune::Kit::Commands::Init

def select_environments

def select_environments
  say "🌎 Which environments do you want to create?", :cyan
  environments_options.each do |number, env|
    say "  #{number}) #{env}"
  end
  input = ask("➡️  Enter numbers separated by commas (or type 'all') [default: all]:", :yellow)
  input = input.strip.downcase
  if input.empty? || input == "all"
    environments_options.values
  else
    selected = input.split(",").map(&:strip)
    environments = selected.map { |num| environments_options[num] }.compact
    if environments.empty?
      say "⚠️ Invalid selection. Creating all environments.", :yellow
      environments_options.values
    else
      environments
    end
  end
end