refactor to use app package instead of service

refactor app to be composable
This commit is contained in:
Robin Olsen
2026-02-28 23:30:31 +01:00
parent ba4d3df669
commit aabce0b0b2
56 changed files with 385 additions and 279 deletions

View File

@@ -1,4 +1,4 @@
package utils
package browser
import (
"fmt"
@@ -7,7 +7,7 @@ import (
)
// Taken and modified from https://gist.github.com/hyg/9c4afcd91fe24316cbf0
func OpenBrowser(url string) error {
func Open(url string) error {
var err error
switch runtime.GOOS {

View File

@@ -1,4 +1,4 @@
package utils
package check
import (
"fmt"
@@ -7,8 +7,8 @@ import (
"github.com/LazyBachelor/LazyPM/internal/models"
)
type ValidationFeedback = models.ValidationFeedback
type Check = models.Check
type ValidationFeedback = models.ValidationFeedback
func NewCheck(message string, valid bool) Check {
return Check{

View File

@@ -1,4 +1,4 @@
package utils
package shellcomp
import "github.com/spf13/cobra"