mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
iris run: Remove duplicate code for os.Stderr
This commit is contained in:
parent
1b3803e5c2
commit
bf40160273
|
@ -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)
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user