summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index 7d86cc8..ce49aa6 100644
--- a/main.go
+++ b/main.go
@@ -23,14 +23,18 @@ var argv args
func main() {
me = new(mainType)
- me.myGui = prep.Gui() // prepares the GUI package for go-args
- me.auto = prep.Bash3(&argv) // this line should be: prep.Bash(&argv)
+ me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args
wd, err := os.Getwd()
if err != nil {
badExit(err)
}
+ if argv.Arch == "" {
+ // looking forward to the day when this default is "riscv64"
+ argv.Arch = "amd64"
+ }
+
me.repo, err = gitpb.NewRepo(wd)
if err != nil {
badExit(err)