1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-03 10:17:03 +00:00

version 12.1.5

Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-02-02 16:29:06 +02:00
parent e04ea83c04
commit 3093d65363
76 changed files with 9647 additions and 366 deletions

View File

@@ -26,7 +26,6 @@ Would be readily available to anyone who could intercept the HTTP request.
*/
import (
"bufio"
"io"
"os"
"path/filepath"
"strconv"
@@ -47,8 +46,7 @@ type (
log func(format string, a ...interface{})
enabled bool // default true
// after alm started
process *os.Process
debugOutput io.Writer
process *os.Process
}
)
@@ -113,11 +111,6 @@ func (e *Editor) GetDescription() string {
return "A bridge between iris and the alm-tools, the browser-based IDE."
}
// we use that editorWriter to prefix the editor's output with "Editor Adaptor: "
type editorWriter struct {
underline io.Writer
}
// Run starts the editor's server.
//
// Developers should call the `Stop` to shutdown the editor's server when main server will be closed.

View File

@@ -170,8 +170,8 @@ func (t *Typescript) hasTypescriptFiles() bool {
t.log("typescript error: directory '%s' couldn't be found,\nplease specify a valid path for your *.ts files", root)
return false
}
// ignore error
filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
if fi.IsDir() {
return nil
}
@@ -188,6 +188,9 @@ func (t *Typescript) hasTypescriptFiles() bool {
return nil
})
if err != nil {
t.log("typescript: hasTypescriptFiles: %v", err)
}
return hasTs
}
@@ -210,8 +213,7 @@ func (t *Typescript) getTypescriptProjects() []string {
root := t.Config.Dir
// t.logger.Printf("\nSearching for typescript projects in %s", root)
// ignore error
filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
if fi.IsDir() {
return nil
}
@@ -228,6 +230,10 @@ func (t *Typescript) getTypescriptProjects() []string {
return nil
})
if err != nil {
t.log("typescript: getTypescriptProjects: %v", err)
}
return projects
}
@@ -238,8 +244,7 @@ func (t *Typescript) getTypescriptFiles() []string {
root := t.Config.Dir
// ignore error
filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, fi os.FileInfo, err error) error {
if fi.IsDir() {
return nil
}
@@ -256,5 +261,10 @@ func (t *Typescript) getTypescriptFiles() []string {
return nil
})
if err != nil {
t.log("typescript: getTypescriptFiles: %v", err)
}
return files
}