mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
21 lines
493 B
Ruby
21 lines
493 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module Homebrew
|
|
module ShellCommand
|
|
extend T::Helpers
|
|
|
|
requires_ancestor { AbstractCommand }
|
|
|
|
sig { void }
|
|
def run
|
|
T.bind(self, AbstractCommand)
|
|
|
|
sh_cmd_path = "#{self.class.dev_cmd? ? "dev-cmd" : "cmd"}/#{self.class.command_name}.sh"
|
|
raise StandardError,
|
|
"This command is just here for completions generation. " \
|
|
"It's actually defined in `#{sh_cmd_path}` instead."
|
|
end
|
|
end
|
|
end
|