diff --git a/internal/types/message.go b/internal/types/message.go index d03b86c..9e6e3df 100644 --- a/internal/types/message.go +++ b/internal/types/message.go @@ -7,4 +7,5 @@ const ( Error MessageType = "error" Info MessageType = "info" Config MessageType = "config" + Warning MessageType = "warning" ) diff --git a/internal/user-input/package-managers.go b/internal/user-input/package-managers.go index e4cffb7..1dc9182 100644 --- a/internal/user-input/package-managers.go +++ b/internal/user-input/package-managers.go @@ -1,6 +1,7 @@ package userinput import ( + "fmt" "os" "github.com/RaulCatalinas/HuskyBC/internal/constants" @@ -26,6 +27,13 @@ func GetPackageManager() types.PackageManager { PackageManager string `survey:"packageManger"` }{} + utils.WriteMessage(utils.WriteMessageProps{ + Type: "warning", + Message: "When using Bun as a package manager it's possible that the dependencies aren't installed correctly, we're working on it.", + }) + + fmt.Println() + err := survey.Ask(questions, &answers) if err != nil { diff --git a/internal/utils/console.go b/internal/utils/console.go index e45ca31..53fd08e 100644 --- a/internal/utils/console.go +++ b/internal/utils/console.go @@ -24,5 +24,7 @@ func WriteMessage(props WriteMessageProps) { case "config": fmt.Println("\033[37m" + props.Message + "\033[0m") + case "warning": + fmt.Println("\033[33m" + props.Message + "\033[0m") } }