Commit e5e9252a authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #3069 from CocoaPods/seg-error-report-command

[ErrorReport] Show full command in the error report
parents 15f31daa 479ee1c2
......@@ -12,6 +12,12 @@ module Pod
#{'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'.reversed}
### Command
```
#{original_command}
```
### Report
* What did you do?
......@@ -137,6 +143,10 @@ EOS
end
end
end
def original_command
"#{$PROGRAM_NAME} #{ARGV.join(' ')}"
end
end
end
end
......
......@@ -18,6 +18,12 @@ module Pod
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/usr/bin/command arg1 arg2
```
### Report
* What did you do?
......@@ -94,6 +100,7 @@ EOS
@report.stubs(:installed_plugins).returns('cocoapods' => Pod::VERSION,
'cocoapods-core' => Pod::VERSION,
'cocoapods-plugins' => '1.2.3')
@report.stubs(:original_command).returns('/usr/bin/command arg1 arg2')
report = remove_color(@report.report(@exception))
report.should == expected
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