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

Fix and improve the iris cmd according to this: https://github.com/kataras/iris/issues/506

This commit is contained in:
Gerasimos Maropoulos
2016-10-23 07:20:39 +03:00
parent fc9cd0a8c2
commit 9958337e5d
8 changed files with 266 additions and 246 deletions

View File

@@ -11,11 +11,11 @@ const (
)
var (
// AssetsDirectory the path which iris saves some assets came from the internet ( used in iris control plugin (to download the html,css,js) and for iris command line tool to download the packages)
// AssetsDirectory is the path which iris saves some assets came from the internet used mostly from iris control plugin (to download the html,css,js)
AssetsDirectory = ""
)
// init just sets the iris path for assets, used in iris control plugin and for iris command line tool(create command)
// init just sets the iris path for assets, used in iris control plugin and GOPATH for iris command line tool(create command)
// the AssetsDirectory path should be like: C:/users/kataras/.iris (for windows) and for linux you can imagine
func init() {
homepath := ""
@@ -25,4 +25,5 @@ func init() {
homepath = os.Getenv("HOME")
}
AssetsDirectory = homepath + PathSeparator + ".iris"
}