2025-08-19 13:03:08 +01:00
|
|
|
# typed: strict
|
2025-03-18 17:38:37 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2025-03-24 21:55:47 +08:00
|
|
|
require "bundle/dumper"
|
|
|
|
|
2025-03-18 17:38:37 +00:00
|
|
|
module Homebrew
|
|
|
|
module Bundle
|
|
|
|
module Commands
|
|
|
|
module Dump
|
2025-08-19 13:03:08 +01:00
|
|
|
sig {
|
|
|
|
params(global: T::Boolean, file: T.nilable(String), describe: T::Boolean, force: T::Boolean,
|
|
|
|
no_restart: T::Boolean, taps: T::Boolean, formulae: T::Boolean, casks: T::Boolean,
|
|
|
|
mas: T::Boolean, whalebrew: T::Boolean, vscode: T::Boolean).void
|
|
|
|
}
|
2025-07-04 11:25:41 +01:00
|
|
|
def self.run(global:, file:, describe:, force:, no_restart:, taps:, formulae:, casks:, mas:, whalebrew:,
|
|
|
|
vscode:)
|
2025-03-18 17:38:37 +00:00
|
|
|
Homebrew::Bundle::Dumper.dump_brewfile(
|
2025-07-04 11:25:41 +01:00
|
|
|
global:, file:, describe:, force:, no_restart:, taps:, formulae:, casks:, mas:, whalebrew:, vscode:,
|
2025-03-18 17:38:37 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|