Fix lint
This commit is contained in:
parent
42caf20fa4
commit
15282dcdbd
@ -1996,7 +1996,8 @@ class Formula
|
|||||||
end
|
end
|
||||||
private :extract_macho_slice_from
|
private :extract_macho_slice_from
|
||||||
|
|
||||||
# Generate shell completions for a formula for `bash`, `zsh`, `fish`, and `powershell`, using the formula's executable.
|
# Generate shell completions for a formula for `bash`, `zsh`, `fish`, and `pwsh`,
|
||||||
|
# using the formula's executable.
|
||||||
#
|
#
|
||||||
# ### Examples
|
# ### Examples
|
||||||
#
|
#
|
||||||
@ -2120,7 +2121,7 @@ class Formula
|
|||||||
popen_read_env = { "SHELL" => shell.to_s }
|
popen_read_env = { "SHELL" => shell.to_s }
|
||||||
script_path = completion_script_path_map[shell]
|
script_path = completion_script_path_map[shell]
|
||||||
# Go's cobra and Rust's clap accept "powershell".
|
# Go's cobra and Rust's clap accept "powershell".
|
||||||
shell_argument = shell == :pwsh ? "powershell" : shell.to_s
|
shell_argument = (shell == :pwsh) ? "powershell" : shell.to_s
|
||||||
shell_parameter = if shell_parameter_format.nil?
|
shell_parameter = if shell_parameter_format.nil?
|
||||||
shell_argument.to_s
|
shell_argument.to_s
|
||||||
elsif shell_parameter_format == :flag
|
elsif shell_parameter_format == :flag
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user