WIP: UI improvements and code refactoring #2

Closed
dananglin wants to merge 25 commits from ui-overhall into main
Showing only changes of commit f25bdcbf84 - Show all commits

View file

@ -11,8 +11,14 @@ import (
var Default = Build var Default = Build
var binary = "pelican"
// Clean clean the workspace // Clean clean the workspace
func Clean() error { func Clean() error {
if err := os.Remove(binary); err != nil {
return err
}
if err := sh.Run("go", "clean", "./..."); err != nil { if err := sh.Run("go", "clean", "./..."); err != nil {
return err return err
} }
@ -41,5 +47,5 @@ func Test() error {
// Build build the executable // Build build the executable
func Build() error { func Build() error {
return sh.Run("go", "build", ".") return sh.Run("go", "build", "-o", binary, "main.go")
} }