Output satisfies Runnable
()
| 134 | |
| 135 | // Output satisfies Runnable |
| 136 | func (s *commandStub) Output() ([]byte, error) { |
| 137 | if err := s.Run(); err != nil { |
| 138 | return []byte(nil), err |
| 139 | } |
| 140 | return []byte(s.stdout), nil |
| 141 | } |
| 142 | |
| 143 | // Inject git authentication string for specific git commands. |
| 144 | func addGitAuthentication(s string) string { |