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:
@@ -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"
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user