refactor to use app package instead of service
refactor app to be composable
This commit is contained in:
@@ -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 {
|
||||
@@ -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{
|
||||
@@ -1,4 +1,4 @@
|
||||
package utils
|
||||
package shellcomp
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
Reference in New Issue
Block a user