diff options
| author | Jeff Carr <[email protected]> | 2024-11-06 13:46:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-06 13:46:15 -0600 |
| commit | 051b470b90ee29a92a0e054fe5148f54dd34cb03 (patch) | |
| tree | 944094e6356eb2042a63183e1bf714d461df46f8 /main.go | |
| parent | d460d8a686ec8da1624499c2b930bf102ea2d9a2 (diff) | |
allow passing of -ldflags
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ var cBox *controlBox var basicWindow *gadgets.BasicWindow func main() { - if args.Repo == "" { + if argv.Repo == "" { log.Info("You need to tell me what repo you want to work on") println("") println("go-deb --repo go.wit.com/apps/helloworld") @@ -32,11 +32,11 @@ func main() { basicWindow = makebasicWindow() - filepath := filepath.Join("/home/jcarr/go/src", args.Repo) + filepath := filepath.Join("/home/jcarr/go/src", argv.Repo) os.Chdir(filepath) // scan the repo - cBox.addRepo(args.Repo) + cBox.addRepo(argv.Repo) // look for a 'config' file in the repo if cBox.readControlFile() == nil { @@ -47,7 +47,7 @@ func main() { cBox.computeControlValues() // verify the values for the package - if args.NoGui { + if argv.NoGui { shell.TestTerminalColor() if ok, err := cBox.buildPackage(); ok { log.Info("build worked") |
