Exemplo n.º 1
0
func main() {
	logger := log.NewLog(log.Logs)

	externalUserDir, e := packages.DirAppletsExternal("") // option config dir
	log.Fatal(e, "DirAppletsExternal")

	packs, e := editpack.PacksExternal(logger, externalUserDir)
	log.Fatal(e, "get external packages")

	editpack.Start(logger, packs)
}
Exemplo n.º 2
0
func runAppInfo(cmd *Command, args []string) {
	setPathAbsolute(appinfoConfPath) // Ensure we have an absolute path for the config dir.

	externalUserDir, e := packages.DirAppletsExternal("") // option config dir
	exitIfFail(e, "start termui")

	packs, e := editpack.PacksExternal(logger, externalUserDir)
	exitIfFail(e, "get external packages")
	editpack.Start(logger, packs)
	return
}