From 9ad7d7bf0220b8cadbef934d344340ec0fe3c70b Mon Sep 17 00:00:00 2001 From: Daniele Conventi Date: Sat, 24 Feb 2018 13:30:42 +0100 Subject: [PATCH 1/6] changed links and references --- README.md | 24 ++++++++++++------------ realize/bindata.go | 36 ++++++++++++++++++------------------ realize/projects.go | 6 +++--- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 08226e8..e368be6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Realize -[![GoDoc](https://img.shields.io/badge/documentation-godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/tockins/realize) -[![Travis](https://img.shields.io/travis/tockins/realize.svg?style=flat-square)](https://travis-ci.org/tockins/realize) -[![AUR](https://img.shields.io/aur/license/yaourt.svg?style=flat-square)](https://raw.githubusercontent.com/tockins/realize/v1/LICENSE) -[![](https://img.shields.io/badge/realize-examples-yellow.svg?style=flat-square)](https://github.com/tockins/realize-examples) -[![Gitter](https://img.shields.io/gitter/room/tockins/realize.svg?style=flat-square)](https://gitter.im/tockins/realize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Go Report Card](https://goreportcard.com/badge/github.com/tockins/realize?style=flat-square)](https://goreportcard.com/report/github.com/tockins/realize) +[![GoDoc](https://img.shields.io/badge/documentation-godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/oxequa/realize) +[![Travis](https://img.shields.io/travis/oxequa/realize.svg?style=flat-square)](https://travis-ci.org/oxequa/realize) +[![AUR](https://img.shields.io/aur/license/yaourt.svg?style=flat-square)](https://raw.githubusercontent.com/oxequa/realize/v1/LICENSE) +[![](https://img.shields.io/badge/realize-examples-yellow.svg?style=flat-square)](https://github.com/oxequa/realize-examples) +[![Gitter](https://img.shields.io/gitter/room/oxequa/realize.svg?style=flat-square)](https://gitter.im/oxequa/realize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Go Report Card](https://goreportcard.com/badge/github.com/oxequa/realize?style=flat-square)](https://goreportcard.com/report/github.com/oxequa/realize) @@ -45,7 +45,7 @@ - Export logs and errors to an external file. - Step-by-step project initialization. - Redesigned panel that displays build errors, console outputs and warnings. -- Any suggestion? [Suggest an amazing feature! πŸ•ΊπŸ»](https://github.com/tockins/realize/issues/new) +- Any suggestion? [Suggest an amazing feature! πŸ•ΊπŸ»](https://github.com/oxequa/realize/issues/new) ## Supporters


@@ -53,7 +53,7 @@

## Get started - $ go get github.com/tockins/realize + $ go get github.com/oxequa/realize ## Commands List @@ -87,7 +87,7 @@ Some examples: $ realize start --name="realize" --build $ realize start --path="realize" --run --no-config $ realize start --install --test --fmt --no-config - $ realize start --path="/Users/username/go/src/github.com/tockins/realize-examples/coin/" + $ realize start --path="/Users/username/go/src/github.com/oxequa/realize-examples/coin/" If you want, you can specify additional arguments for your project: @@ -126,7 +126,7 @@ Remove a project by its name *** there is no more a .realize dir, but only a .realize.yaml file *** -For more examples check: [Realize Examples](https://github.com/tockins/realize-examples) +For more examples check: [Realize Examples](https://github.com/oxequa/realize-examples) settings: legacy: @@ -197,8 +197,8 @@ For more examples check: [Realize Examples](https://github.com/tockins/realize-e errorOutputPattern: mypattern //custom error pattern ## Support and Suggestions -πŸ’¬ Chat with us [Gitter](https://gitter.im/tockins/realize)
-⭐️ Suggest a new [Feature](https://github.com/tockins/realize/issues/new) +πŸ’¬ Chat with us [Gitter](https://gitter.im/oxequa/realize)
+⭐️ Suggest a new [Feature](https://github.com/oxequa/realize/issues/new) ## Backers diff --git a/realize/bindata.go b/realize/bindata.go index 1347561..52278e3 100644 --- a/realize/bindata.go +++ b/realize/bindata.go @@ -392,19 +392,19 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "assets/app/components/index.html": assetsAppComponentsIndexHtml, - "assets/app/components/project/index.html": assetsAppComponentsProjectIndexHtml, - "assets/app/components/settings/index.html": assetsAppComponentsSettingsIndexHtml, - "assets/assets/css/app.css": assetsAssetsCssAppCss, - "assets/assets/img/logo.png": assetsAssetsImgLogoPng, - "assets/assets/img/svg/github-logo.svg": assetsAssetsImgSvgGithubLogoSvg, + "assets/app/components/index.html": assetsAppComponentsIndexHtml, + "assets/app/components/project/index.html": assetsAppComponentsProjectIndexHtml, + "assets/app/components/settings/index.html": assetsAppComponentsSettingsIndexHtml, + "assets/assets/css/app.css": assetsAssetsCssAppCss, + "assets/assets/img/logo.png": assetsAssetsImgLogoPng, + "assets/assets/img/svg/github-logo.svg": assetsAssetsImgSvgGithubLogoSvg, "assets/assets/img/svg/ic_arrow_back_black_48px.svg": assetsAssetsImgSvgIc_arrow_back_black_48pxSvg, - "assets/assets/img/svg/ic_clear_white_48px.svg": assetsAssetsImgSvgIc_clear_white_48pxSvg, - "assets/assets/img/svg/ic_menu_white_48px.svg": assetsAssetsImgSvgIc_menu_white_48pxSvg, - "assets/assets/img/svg/ic_settings_black_48px.svg": assetsAssetsImgSvgIc_settings_black_48pxSvg, - "assets/assets/js/all.js": assetsAssetsJsAllJs, - "assets/assets/js/all.min.js": assetsAssetsJsAllMinJs, - "assets/index.html": assetsIndexHtml, + "assets/assets/img/svg/ic_clear_white_48px.svg": assetsAssetsImgSvgIc_clear_white_48pxSvg, + "assets/assets/img/svg/ic_menu_white_48px.svg": assetsAssetsImgSvgIc_menu_white_48pxSvg, + "assets/assets/img/svg/ic_settings_black_48px.svg": assetsAssetsImgSvgIc_settings_black_48pxSvg, + "assets/assets/js/all.js": assetsAssetsJsAllJs, + "assets/assets/js/all.min.js": assetsAssetsJsAllMinJs, + "assets/index.html": assetsIndexHtml, } // AssetDir returns the file names below a certain @@ -446,6 +446,7 @@ type bintree struct { Func func() (*asset, error) Children map[string]*bintree } + var _bintree = &bintree{nil, map[string]*bintree{ "assets": &bintree{nil, map[string]*bintree{ "app": &bintree{nil, map[string]*bintree{ @@ -466,15 +467,15 @@ var _bintree = &bintree{nil, map[string]*bintree{ "img": &bintree{nil, map[string]*bintree{ "logo.png": &bintree{assetsAssetsImgLogoPng, map[string]*bintree{}}, "svg": &bintree{nil, map[string]*bintree{ - "github-logo.svg": &bintree{assetsAssetsImgSvgGithubLogoSvg, map[string]*bintree{}}, + "github-logo.svg": &bintree{assetsAssetsImgSvgGithubLogoSvg, map[string]*bintree{}}, "ic_arrow_back_black_48px.svg": &bintree{assetsAssetsImgSvgIc_arrow_back_black_48pxSvg, map[string]*bintree{}}, - "ic_clear_white_48px.svg": &bintree{assetsAssetsImgSvgIc_clear_white_48pxSvg, map[string]*bintree{}}, - "ic_menu_white_48px.svg": &bintree{assetsAssetsImgSvgIc_menu_white_48pxSvg, map[string]*bintree{}}, - "ic_settings_black_48px.svg": &bintree{assetsAssetsImgSvgIc_settings_black_48pxSvg, map[string]*bintree{}}, + "ic_clear_white_48px.svg": &bintree{assetsAssetsImgSvgIc_clear_white_48pxSvg, map[string]*bintree{}}, + "ic_menu_white_48px.svg": &bintree{assetsAssetsImgSvgIc_menu_white_48pxSvg, map[string]*bintree{}}, + "ic_settings_black_48px.svg": &bintree{assetsAssetsImgSvgIc_settings_black_48pxSvg, map[string]*bintree{}}, }}, }}, "js": &bintree{nil, map[string]*bintree{ - "all.js": &bintree{assetsAssetsJsAllJs, map[string]*bintree{}}, + "all.js": &bintree{assetsAssetsJsAllJs, map[string]*bintree{}}, "all.min.js": &bintree{assetsAssetsJsAllMinJs, map[string]*bintree{}}, }}, }}, @@ -528,4 +529,3 @@ func _filePath(dir, name string) string { cannonicalName := strings.Replace(name, "\\", "/", -1) return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) } - diff --git a/realize/projects.go b/realize/projects.go index 3ee3ff3..993f080 100644 --- a/realize/projects.go +++ b/realize/projects.go @@ -51,7 +51,7 @@ type Project struct { stop chan bool files int64 folders int64 - last last + last last paths []string Name string `yaml:"name" json:"name"` Path string `yaml:"path" json:"path"` @@ -64,7 +64,7 @@ type Project struct { } // Last is used to save info about last file changed -type last struct{ +type last struct { file string time time.Time } @@ -483,7 +483,7 @@ func (p *Project) walk(path string, info os.FileInfo, err error) error { result := p.watcher.Walk(path, p.init) if result != "" { if p.parent.Settings.Recovery.Index { - log.Println("Indexing",path) + log.Println("Indexing", path) } if info.IsDir() { // tools dir From a8112d1e323fa8a664820ec84e32ba694419c84b Mon Sep 17 00:00:00 2001 From: Daniele Conventi Date: Wed, 28 Feb 2018 16:00:06 +0100 Subject: [PATCH 2/6] new logo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e368be6..150804f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@
- +

The #1 Golang Task Runner

Enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.

From b93a37103d24e588e26361cf9c0d301c5761d1b1 Mon Sep 17 00:00:00 2001 From: Daniele Conventi Date: Fri, 9 Mar 2018 13:13:50 +0100 Subject: [PATCH 3/6] updated README.md --- README.md | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 150804f..1c9845e 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,16 @@ -# Realize - -[![GoDoc](https://img.shields.io/badge/documentation-godoc-blue.svg?style=flat-square)](https://godoc.org/github.com/oxequa/realize) -[![Travis](https://img.shields.io/travis/oxequa/realize.svg?style=flat-square)](https://travis-ci.org/oxequa/realize) -[![AUR](https://img.shields.io/aur/license/yaourt.svg?style=flat-square)](https://raw.githubusercontent.com/oxequa/realize/v1/LICENSE) -[![](https://img.shields.io/badge/realize-examples-yellow.svg?style=flat-square)](https://github.com/oxequa/realize-examples) -[![Gitter](https://img.shields.io/gitter/room/oxequa/realize.svg?style=flat-square)](https://gitter.im/oxequa/realize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Go Report Card](https://goreportcard.com/badge/github.com/oxequa/realize?style=flat-square)](https://goreportcard.com/report/github.com/oxequa/realize) - - -
- -
- -

The #1 Golang Task Runner

-

Enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.

-
- -
+

+ +

+

+ Build status + GoReport + GoDoc + License + Gitter +

+
+

#1 Golang live reload and task runner

+

@@ -52,8 +45,10 @@

-## Get started - $ go get github.com/oxequa/realize +## Quickstart +``` +go get github.com/oxequa/realize +``` ## Commands List From fd15d518c4e5c8951f4b7a36e202fc12e8d7afdd Mon Sep 17 00:00:00 2001 From: huanglifeng Date: Sat, 17 Mar 2018 00:21:30 +0800 Subject: [PATCH 4/6] fixed can not build problem --- Gopkg.lock | 117 ---------------------------------------------- Gopkg.toml | 2 +- realize.go | 4 +- realize/server.go | 2 +- realize_test.go | 2 +- 5 files changed, 5 insertions(+), 122 deletions(-) delete mode 100644 Gopkg.lock diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index f8dcb81..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,117 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/dgrijalva/jwt-go" - packages = ["."] - revision = "dbeaa9332f19a944acb5736b4456cfcc02140e29" - version = "v3.1.0" - -[[projects]] - name = "github.com/fatih/color" - packages = ["."] - revision = "570b54cabe6b8eb0bc2dfce68d964677d63b5260" - version = "v1.5.0" - -[[projects]] - name = "github.com/fsnotify/fsnotify" - packages = ["."] - revision = "629574ca2a5df945712d3079857300b5e4da0236" - version = "v1.4.2" - -[[projects]] - name = "github.com/go-siris/siris" - packages = ["core/errors"] - revision = "d6bc3df4b216199bec985043ca6c3e5c00232fd5" - version = "v7.4.0" - -[[projects]] - name = "github.com/labstack/echo" - packages = [".","middleware"] - revision = "0473c51f1dbd83487effce00702571d19033a6e5" - version = "3.2.5" - -[[projects]] - name = "github.com/labstack/gommon" - packages = ["bytes","color","log","random"] - revision = "57409ada9da0f2afad6664c49502f8c50fbd8476" - version = "0.2.3" - -[[projects]] - name = "github.com/mattn/go-colorable" - packages = ["."] - revision = "167de6bfdfba052fa6b2d3664c8f5272e23c9072" - version = "v0.0.9" - -[[projects]] - name = "github.com/mattn/go-isatty" - packages = ["."] - revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39" - version = "v0.0.3" - -[[projects]] - branch = "master" - name = "github.com/satori/go.uuid" - packages = ["."] - revision = "5bf94b69c6b68ee1b541973bb8e1144db23a194b" - -[[projects]] - name = "github.com/sirupsen/logrus" - packages = ["."] - revision = "d682213848ed68c0a260ca37d6dd5ace8423f5ba" - version = "v1.0.4" - -[[projects]] - name = "github.com/tockins/interact" - packages = ["."] - revision = "f8fb5795b5d713c41dab6771ffe1fdfdfd0c3285" - version = "1.1.1" - -[[projects]] - branch = "master" - name = "github.com/valyala/bytebufferpool" - packages = ["."] - revision = "e746df99fe4a3986f4d4f79e13c1e0117ce9c2f7" - -[[projects]] - branch = "master" - name = "github.com/valyala/fasttemplate" - packages = ["."] - revision = "dcecefd839c4193db0d35b88ec65b4c12d360ab0" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = ["acme","acme/autocert","ssh/terminal"] - revision = "94eea52f7b742c7cbe0b03b22f0c4c8631ece122" - -[[projects]] - branch = "master" - name = "golang.org/x/net" - packages = ["websocket"] - revision = "d866cfc389cec985d6fda2859936a575a55a3ab6" - -[[projects]] - branch = "master" - name = "golang.org/x/sys" - packages = ["unix","windows"] - revision = "d5840adf789d732bc8b00f37b26ca956a7cc8e79" - -[[projects]] - branch = "v2" - name = "gopkg.in/urfave/cli.v2" - packages = ["."] - revision = "b2bf3c5abeb90da407891aecd1df2c5a1f6170c1" - -[[projects]] - branch = "v2" - name = "gopkg.in/yaml.v2" - packages = ["."] - revision = "287cf08546ab5e7e37d55a84f7ed3fd1db036de5" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "9a809196ffa8ff716d9be9eb2bc0342d0358b334fa50937a69a5c96bf60826f8" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 26b5b64..a0e9380 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -41,7 +41,7 @@ version = "1.0.4" [[constraint]] - name = "github.com/tockins/interact" + name = "github.com/oxequa/interact" version = "1.1.1" [[constraint]] diff --git a/realize.go b/realize.go index 0fdd581..2895d3b 100644 --- a/realize.go +++ b/realize.go @@ -1,8 +1,8 @@ package main import ( - "github.com/tockins/interact" - "github.com/tockins/realize/realize" + "github.com/oxequa/interact" + "github.com/oxequa/realize/realize" "gopkg.in/urfave/cli.v2" "log" "os" diff --git a/realize/server.go b/realize/server.go index ae30627..cf59e10 100644 --- a/realize/server.go +++ b/realize/server.go @@ -146,7 +146,7 @@ func (s *Server) Start() (err error) { //websocket e.GET("/ws", s.projects) - e.HideBanner = true + // e.HideBanner = true e.Debug = false go func() { log.Println(s.Parent.Prefix("Started on " + string(s.Host) + ":" + strconv.Itoa(s.Port))) diff --git a/realize_test.go b/realize_test.go index 981590b..caf17fd 100644 --- a/realize_test.go +++ b/realize_test.go @@ -3,7 +3,7 @@ package main import ( "bytes" "errors" - "github.com/tockins/realize/realize" + "github.com/oxequa/realize/realize" "log" "strings" "testing" From e3c540875a05749b20472baadaf80685c6fb97cc Mon Sep 17 00:00:00 2001 From: ThinhNT Date: Thu, 22 Mar 2018 10:49:53 +0700 Subject: [PATCH 5/6] - fix wrong GOBIN when GOPATH includes multi directories - support custom run method to config path to binary to run --- realize/cli.go | 3 ++- realize/projects.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/realize/cli.go b/realize/cli.go index 28a36b5..24982f3 100644 --- a/realize/cli.go +++ b/realize/cli.go @@ -65,7 +65,8 @@ func init() { if build.Default.GOPATH == "" { log.Fatal("$GOPATH isn't set properly") } - if err := os.Setenv("GOBIN", filepath.Join(build.Default.GOPATH, "bin")); err != nil { + path := filepath.SplitList(build.Default.GOPATH) + if err := os.Setenv("GOBIN", filepath.Join(path[len(path)-1], "bin")); err != nil { log.Fatal(err) } } diff --git a/realize/projects.go b/realize/projects.go index 993f080..3017272 100644 --- a/realize/projects.go +++ b/realize/projects.go @@ -582,6 +582,9 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err name = filepath.Base(dirPath) } path = filepath.Join(dirPath, name) + if p.Tools.Run.Method != "" { + path = p.Tools.Run.Method + } if _, err := os.Stat(path); err == nil { build = exec.Command(path, args...) } else if _, err := os.Stat(path + RExtWin); err == nil { From 7f988a28540dfd0d4cb63ecf26ac9b1bd7ec7e44 Mon Sep 17 00:00:00 2001 From: Daniele Conventi Date: Tue, 27 Mar 2018 18:05:05 +0200 Subject: [PATCH 6/6] fixed license badge link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c9845e..40600be 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Build status GoReport GoDoc - License + License Gitter