mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
19 lines
456 B
Ruby
19 lines
456 B
Ruby
![]() |
# typed: strict
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
module Homebrew
|
||
|
module ShellCommand
|
||
|
extend T::Helpers
|
||
|
|
||
|
requires_ancestor { AbstractCommand }
|
||
|
|
||
|
sig { void }
|
||
|
def run
|
||
|
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
|