1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

Fix iris run main.go not worked properly on some editors. Add notes for next version. Read HISTORY.md

This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-02-05 18:13:24 +02:00
parent 2a911a450c
commit 3430e24188
5 changed files with 155 additions and 30 deletions

View File

@@ -27,17 +27,8 @@ func run(cli.Flags) error {
}
func runAndWatch(programPath string) {
/*
project := rizla.NewProject(programPath)
project.Name = "IRIS"
project.AllowReloadAfter = time.Duration(3) * time.Second
project.Out = rizla.NewPrinter(os.Stdout)
project.Err = rizla.NewPrinter(os.Stderr)
rizla.Add(project)
rizla.Run()
*/
// or just do that:
rizla.DefaultDisableProgramRerunOutput = true // we don't want the banner to be shown after the first run
rizla.Run(programPath)
// run with the filepath.Walk method instead of file signals because
// some (not the majority) users' editors override the operating system's file signals
rizla.RunWith(rizla.WatcherFromFlag("-walk"))
}