func createPackage(args []string) (err error) { if len(args) == 0 { err = lib.Error("No name for package!") return } p, err := lib.NewPackageFromName(args[0]) if err != nil { return } err = p.ExportPackage() return }
func createPackageDirectory(location string) (err error) { target := location + seperator + "packages" err = os.Mkdir(target, initFileMode) if err != nil { return } // Create default package p, _ := lib.NewPackageFromName("default") err = p.ExportPackage() if err != nil { return } return }