Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
YairLevi committed Jan 24, 2024
1 parent 3c4e1be commit 81f19de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/coffee/build.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"github.com/YairLevi/Coffee/cli/coffee/util"
"github.com/charmbracelet/log"
"os"
Expand All @@ -12,6 +13,9 @@ var sourceDirMapping = map[string]string{
}

func Build() error {
if len(os.Args) < 3 {
return errors.New("specify which ui template to build for (will change later)")
}
err := os.Chdir("frontend")
if err != nil {
return err
Expand Down

0 comments on commit 81f19de

Please sign in to comment.