func install(exporter *exporter.Exporter, appName string, pathToProcfile string) { if pathToProcfile == "" { panic("No procfile given") } if app, err := procfile.ReadProcfile(pathToProcfile); err == nil { exporter.Install(appName, app) fmt.Println("service installed to", exporter.Config.TargetDir) } else { panic(err) } }
func uninstall(exporter *exporter.Exporter, appName string) { exporter.Uninstall(appName) fmt.Println("service uninstalled") }