argv
This commit is contained in:
parent
e629211edd
commit
519be64689
2
argv.go
2
argv.go
|
@ -35,7 +35,7 @@ type args struct {
|
||||||
Force bool `arg:"--force" help:"rebuild everything"`
|
Force bool `arg:"--force" help:"rebuild everything"`
|
||||||
Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
|
Recursive bool `arg:"--recursive" help:"go-clone --recursive"`
|
||||||
WITCOM bool `arg:"--witcom" help:"add the GPL header"`
|
WITCOM bool `arg:"--witcom" help:"add the GPL header"`
|
||||||
Max int32 `arg:"--max" help:"stop building after max builds"`
|
Max int32 `arg:"--max" defauult:"40" help:"stop building after max builds"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EmptyCmd struct {
|
type EmptyCmd struct {
|
||||||
|
|
|
@ -45,12 +45,12 @@ func buildDeb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if argv.Release {
|
if argv.Release {
|
||||||
cmd = []string{"go-deb", "--release", "--no-gui", "--auto", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--release", "--forge", check.GetGoPath(), "--dir", outdir}
|
||||||
} else {
|
} else {
|
||||||
cmd = []string{"go-deb", "--auto", "--no-gui", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
|
||||||
}
|
}
|
||||||
if me.forge.Config.IsPrivate(check.GetGoPath()) {
|
if me.forge.Config.IsPrivate(check.GetGoPath()) {
|
||||||
cmd = []string{"go-deb", "--auto", "--no-gui", "--forge", check.GetGoPath(), "--dir", outdir}
|
cmd = []string{"go-deb", "--forge", check.GetGoPath(), "--dir", outdir}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue