Commit 7e108dad authored by Samuel E. Giddins's avatar Samuel E. Giddins

[ErrorReport] Show full command in the error report

parent 15f31daa
...@@ -12,6 +12,12 @@ module Pod ...@@ -12,6 +12,12 @@ module Pod
#{'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'.reversed} #{'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'.reversed}
### Command
```
#{original_command}
```
### Report ### Report
* What did you do? * What did you do?
...@@ -137,6 +143,10 @@ EOS ...@@ -137,6 +143,10 @@ EOS
end end
end end
end end
def original_command
"#{$0} #{ARGV.join(' ')}"
end
end end
end end
end end
......
...@@ -18,6 +18,12 @@ module Pod ...@@ -18,6 +18,12 @@ module Pod
――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/bin/command arg1 arg2
```
### Report ### Report
* What did you do? * What did you do?
...@@ -94,6 +100,7 @@ EOS ...@@ -94,6 +100,7 @@ EOS
@report.stubs(:installed_plugins).returns('cocoapods' => Pod::VERSION, @report.stubs(:installed_plugins).returns('cocoapods' => Pod::VERSION,
'cocoapods-core' => Pod::VERSION, 'cocoapods-core' => Pod::VERSION,
'cocoapods-plugins' => '1.2.3') 'cocoapods-plugins' => '1.2.3')
@report.stubs(:original_command).returns('/usr/bin/command arg1 arg2')
report = remove_color(@report.report(@exception)) report = remove_color(@report.report(@exception))
report.should == expected report.should == expected
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment