summaryrefslogtreecommitdiff
path: root/build.go
blob: b80be6897bb67aa66f2d20a82034952161f5165f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

import (
	"os"

	"go.wit.com/lib/gui/shell"
	"go.wit.com/log"
)

func build() error {
	err := me.forge.Build(workingRepo, nil)
	pwd, _ := os.Getwd()
	if err == nil {
		log.Info("this totally worked", pwd)
		shell.RunEcho([]string{"ls", "-l"})
		log.Info("ran ls")
	} else {
		log.Info("this totally did not work", pwd)
		shell.RunEcho([]string{"ls", "-l"})
		log.Info("ran ls")
		badExit(err)
	}
	return err
}