cmd/shellenv: use ShellCommand
This commit is contained in:
parent
f7e3873ecd
commit
02aaf67d55
@ -2,10 +2,13 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "abstract_command"
|
require "abstract_command"
|
||||||
|
require "shell_command"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module Cmd
|
module Cmd
|
||||||
class Shellenv < AbstractCommand
|
class Shellenv < AbstractCommand
|
||||||
|
include ShellCommand
|
||||||
|
|
||||||
cmd_args do
|
cmd_args do
|
||||||
description <<~EOS
|
description <<~EOS
|
||||||
Valid shells: bash|csh|fish|pwsh|sh|tcsh|zsh
|
Valid shells: bash|csh|fish|pwsh|sh|tcsh|zsh
|
||||||
@ -21,9 +24,6 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
named_args :shell
|
named_args :shell
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { override.void }
|
|
||||||
def run = raise_sh_command_error!
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user