package main

import (
	"fmt"
	"os"
	"jogurto/commands"
)

func main() {
	var options string
	var packages []string
	if len(os.Args) < 2 {
		fmt.Printf("%s: A yaourt-like interface and toolkit for Debian.", os.Args[0])
	} else {
		options = os.Args[1]
		packages = os.Args[2:]
	}
	run := commands.Map[options]
	if run != nil {
		err := run(packages)
		if err != nil {
			fmt.Println("An error occurred:", err.Error())
		}
	} else {
		fmt.Println("Option", options, "not implemented")
	}
}
package main

import (
	"fmt"
	"os"
	"github.com/lapingvino/jogurto/commands"
)

func main() {
	var options string
	var packages []string
	if len(os.Args) < 2 {
		fmt.Printf("%s: A yaourt-like interface and toolkit for Debian.", os.Args[0])
	} else {
		options = os.Args[1]
		packages = os.Args[2:]
	}
	run := commands.Map[options]
	if run != nil {
		err := run(packages)
		if err != nil {
			fmt.Println("An error occurred:", err.Error())
		}
	} else {
		fmt.Println("Option", options, "not implemented")
	}
}
Change import path to a qualified one to be compatible with gobuild.io etc
Change import path to a qualified one to be compatible with gobuild.io etc
