2020-11-25 17:03:23 +01:00
|
|
|
# typed: true
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-04-17 18:25:08 +09:00
|
|
|
require "cli/parser"
|
2018-04-10 18:37:15 +05:30
|
|
|
|
2016-05-20 11:00:51 +01:00
|
|
|
module Homebrew
|
2020-10-20 12:03:48 +02:00
|
|
|
extend T::Sig
|
|
|
|
|
2016-09-26 01:44:51 +02:00
|
|
|
module_function
|
|
|
|
|
2020-10-20 12:03:48 +02:00
|
|
|
sig { returns(CLI::Parser) }
|
2018-07-30 18:25:38 +05:30
|
|
|
def mirror_args
|
|
|
|
Homebrew::CLI::Parser.new do
|
2021-01-15 15:04:02 -05:00
|
|
|
description <<~EOS
|
2021-05-12 13:37:18 +01:00
|
|
|
Reupload the stable URL of a formula for use as a mirror.
|
2018-09-28 21:39:52 +05:30
|
|
|
EOS
|
2021-04-09 09:30:36 +01:00
|
|
|
hide_from_man_page!
|
2018-04-01 16:47:30 +05:30
|
|
|
end
|
2018-07-30 18:25:38 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def mirror
|
2021-05-12 13:37:18 +01:00
|
|
|
odisabled "`brew mirror` (Bintray was shut down on 1st May 2021)"
|
2016-05-20 11:00:51 +01:00
|
|
|
end
|
|
|
|
end
|