fix style

This commit is contained in:
Max Eisner 2022-08-10 18:00:44 +02:00
parent 3786887146
commit 074bc3c247
No known key found for this signature in database
GPG Key ID: 4BF122C22879F0C8

View File

@ -1663,7 +1663,8 @@ class Formula
# generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: :arg, shells: [:bash]) # generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: :arg, shells: [:bash])
# translates to # translates to
# #
# (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo", "completions", "--shell=bash") # (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo",
# "completions", "--shell=bash")
# #
# @example Using predefined shell_parameter_format :none # @example Using predefined shell_parameter_format :none
# generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: :none, shells: [:bash]) # generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: :none, shells: [:bash])
@ -1672,10 +1673,12 @@ class Formula
# (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo", "completions") # (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo", "completions")
# #
# @example Using custom shell_parameter_format # @example Using custom shell_parameter_format
# generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: "--selected-shell=", shells: [:bash]) # generate_completions_from_executable(bin/"foo", "completions", shell_parameter_format: "--selected-shell=",
# shells: [:bash])
# translates to # translates to
# #
# (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo", "completions", "--selected-shell=bash") # (bash_completion/"foo").write Utils.safe_popen_read({ "SHELL" => "bash" }, bin/"foo",
# "completions", "--selected-shell=bash")
sig { sig {
params(executable: Pathname, subcmd: String, base_name: String, shells: T::Array[Symbol], params(executable: Pathname, subcmd: String, base_name: String, shells: T::Array[Symbol],
shell_parameter_format: T.nilable(T.any(Symbol, String))).void shell_parameter_format: T.nilable(T.any(Symbol, String))).void