include formula/cask args in brew info --github suggestion
This commit is contained in:
parent
1e95de4757
commit
12d93c480f
@ -54,7 +54,7 @@ module Homebrew
|
|||||||
|
|
||||||
if Homebrew.failed?
|
if Homebrew.failed?
|
||||||
$stderr.puts "The name may be wrong, or the tap hasn't been tapped."
|
$stderr.puts "The name may be wrong, or the tap hasn't been tapped."
|
||||||
$stderr.puts "Consider using `brew info --github formula|cask [...]` instead."
|
$stderr.puts "Consider using `brew info --github #{args.named.join(" ")}` instead."
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -15,4 +15,13 @@ describe "brew cat" do
|
|||||||
.and not_to_output.to_stderr
|
.and not_to_output.to_stderr
|
||||||
.and be_a_success
|
.and be_a_success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "when a source file isn't found" do
|
||||||
|
it "prints a suggestion to use brew info --github" , :integration_test do
|
||||||
|
|
||||||
|
expect { brew "cat", "asdf", "bogus"}
|
||||||
|
.to output(/Consider using `brew info --github asdf bogus` instead/).to_stderr
|
||||||
|
.and be_a_failure
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user