1
0
mirror of https://github.com/beego/bee.git synced 2024-11-26 01:11:30 +00:00

Merge pull request #3 from yaofangou/master

set exp default . to fix issue #2
This commit is contained in:
astaxie 2013-12-15 06:23:26 -08:00
commit 120e06cfe0

View File

@ -45,7 +45,7 @@ compress an beego project
-b build specify platform app. default true -b build specify platform app. default true
-o compressed file output dir. default use current path -o compressed file output dir. default use current path
-f format. [ tar.gz / zip ]. default tar.gz. note: zip doesn't support embed symlink, skip it -f format. [ tar.gz / zip ]. default tar.gz. note: zip doesn't support embed symlink, skip it
-exp path exclude prefix -exp path exclude prefix. default: .
-exs path exclude suffix. default: .go:.DS_Store:.tmp -exs path exclude suffix. default: .go:.DS_Store:.tmp
all path use : as separator all path use : as separator
-fs follow symlink. default false -fs follow symlink. default false
@ -70,7 +70,7 @@ var (
func init() { func init() {
fs := flag.NewFlagSet("pack", flag.ContinueOnError) fs := flag.NewFlagSet("pack", flag.ContinueOnError)
fs.StringVar(&appPath, "p", "", "") fs.StringVar(&appPath, "p", "", "")
fs.StringVar(&excludeP, "exp", "", "") fs.StringVar(&excludeP, "exp", ".", "")
fs.StringVar(&excludeS, "exs", ".go:.DS_Store:.tmp", "") fs.StringVar(&excludeS, "exs", ".go:.DS_Store:.tmp", "")
fs.StringVar(&outputP, "o", "", "") fs.StringVar(&outputP, "o", "", "")
fs.BoolVar(&build, "b", true, "") fs.BoolVar(&build, "b", true, "")