iris run: Remove duplicate code for os.Stderr

This commit is contained in:
Makis Maropoulos 2016-06-25 16:13:59 +03:00
parent 1b3803e5c2
commit bf40160273
2 changed files with 4 additions and 3 deletions

View File

@ -7,8 +7,11 @@ Third party packages
- [jade is one of the supporting template engines](https://github.com/Joker/jade)
- [blackfriday is one of the supporting template engines](https://github.com/russross/blackfriday)
- [klauspost/gzip for faster compression](https://github.com/klauspost/compress/gzip)
- [httprouter](https://github.com/julienschmidt/httprouter) for the basic BSD kernel's [trie algorithm](https://en.wikipedia.org/wiki/Trie) used inside [muxEntry](https://github.com/kataras/iris/blob/master/http.go#L578), edited by [Iris' author](https://github.com/kataras) to improve its performance and achieve 0 memory allocations per operation.
- [goo](https://github.com/kataras/goo) used inside iris command line tool
- [cli](https://github.com/kataras/cli) used inside iris command line tool
- [color for the logger's colors](https://github.com/fatih/color)
- [mergo for merge configs](https://github.com/imdario/mergo)
- [formam as form binder](https://github.com/monoculum/formam)
- [i18n for internalization](https://github.com/Unknwon/i18n)
- [color for banner](https://github.com/fatih/color)
- [gothic](https://github.com/iris-contrib/gothic)/[goth for Multi-Provider OAuth, OAuth2](https://github.com/markbates/goth)

View File

@ -40,12 +40,10 @@ func build(sourcepath string) error {
func run(executablePath string) (*utils.Cmd, error) {
runCmd := utils.CommandBuilder("." + utils.PathSeparator + executablePath)
runCmd.Dir = workingDir
runCmd.Stderr = os.Stderr
runCmd.Stdout = os.Stdout
runCmd.Stderr = os.Stderr
if err := runCmd.Start(); err != nil {
ferr := errRun.Format(executablePath, err.Error())
printer.Dangerf(ferr.Error())