class ViteRuby::CLI::Vite
def call(mode:, args: [], clobber: false, **boolean_opts)
def call(mode:, args: [], clobber: false, **boolean_opts) ViteRuby.env['VITE_RUBY_MODE'] = mode ViteRuby.commands.clobber if clobber boolean_opts.map { |name, value| args << "--#{ name }" if value } yield(args) end