1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

Improve the iris run command as requested here https://github.com/kataras/iris/issues/192

This commit is contained in:
Makis Maropoulos
2016-06-24 05:17:22 +03:00
parent 95813bf36b
commit 3e692804f2
5 changed files with 37 additions and 12 deletions

View File

@@ -13,6 +13,10 @@ import (
"github.com/kataras/iris/logger"
)
const (
Version = "0.0.7"
)
var (
app *cli.App
printer *logger.Logger
@@ -33,7 +37,7 @@ func init() {
defaultInstallDir := workingDir[strings.LastIndexByte(workingDir, os.PathSeparator)+1:]
// init the cli app
app = cli.NewApp("iris", "Command line tool for Iris web framework", "0.0.6")
app = cli.NewApp("iris", "Command line tool for Iris web framework", Version)
// version command
app.Command(cli.Command("version", "\t prints your iris version").Action(func(cli.Flags) error { app.Printf("%s", iris.Version); return nil }))